File tree Expand file tree Collapse file tree 3 files changed +24
-19
lines changed Expand file tree Collapse file tree 3 files changed +24
-19
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Create Release'
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' *'
6
+
7
+ jobs :
8
+ release :
9
+ if : startsWith(github.ref, 'refs/tags/')
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Build Changelog
13
+ id : github_release
14
+ uses : mikepenz/release-changelog-builder-action@v3
15
+ env :
16
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17
+
18
+ - name : Create Release
19
+
20
+ with :
21
+ body : ${{steps.github_release.outputs.changelog}}
Original file line number Diff line number Diff line change 15
15
with :
16
16
node-version : 16
17
17
cache : " npm"
18
-
19
-
18
+
20
19
- run : npm ci
21
20
- run : npm run prepublishOnly
22
21
- run : npm run test:update
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ jobs:
10
10
- uses : actions/checkout@v3
11
11
with :
12
12
ref : ${{ github.ref }}
13
+ token : ${{ secrets.BOT_PAT_TOKEN }}
13
14
14
15
- name : Setup Node.js
15
16
uses : actions/setup-node@v3
16
17
with :
17
18
node-version : 16
18
19
cache : " npm"
19
-
20
20
21
21
- run : npm ci
22
22
- run : npm run prepublishOnly
28
28
uses : " phips28/gh-action-bump-version@master"
29
29
with :
30
30
tag-prefix : ' '
31
- skip-tag : true
32
- skip-push : true
33
- skip-commit : true
34
31
env :
35
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
-
37
- - name : Push files and tag
38
-
39
- with :
40
- repository : ${{ github.repository }}
41
- branch_name : ${{ github.ref_name }}
42
- github_token : ${{ secrets.BOT_PAT_TOKEN }}
43
- commit_message : ' CI: build version ${{ steps.version-bump.outputs.newTag }} [actions skip]'
44
- tag_version : ${{ steps.version-bump.outputs.newTag }}
45
- files_to_commit : ' package.json'
46
- create_tag : true
32
+ GITHUB_TOKEN : ${{ secrets.BOT_PAT_TOKEN }}
47
33
48
34
- name : ' Output Step'
49
35
env :
54
40
uses : JS-DevTools/npm-publish@v1
55
41
with :
56
42
token : ${{ secrets.NPM_TOKEN }}
57
-
58
43
You can’t perform that action at this time.
0 commit comments