-
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.75 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
on:
workflow_run:
workflows: ['Tests']
types:
- completed
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4.2.2
- uses: pnpm/action-setup@v4.0.0
with:
version: 9
run_install: false
- uses: actions/setup-node@v4.1.0
with:
node-version: 22
- run: |
pnpm i --frozen-lockfile
pnpm build
- uses: JS-DevTools/npm-publish@v3.1.1
id: publish
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Create Tag
if: ${{ steps.publish.outputs.type }}
id: create_tag
uses: jaywcjlove/create-tag-action@v2.2.0
with:
package-path: ./package.json
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v2.2.2
if: steps.create_tag.outputs.successful
with:
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (Uninen|renovate-bot)
show-emoji: false
- name: Get the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"
- name: Create Release
uses: ncipollo/release-action@v1.14.0
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.create_tag.outputs.version }}
tag: ${{ steps.create_tag.outputs.version }}
body: |
${{ steps.changelog.outputs.changelog }}
Compare changes: ${{ steps.changelog.outputs.compareurl }}
Read more from the Changelog: https://github.com/slipmatio/logger/blob/main/CHANGES.md