File tree 1 file changed +15
-11
lines changed
1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 1
- name : ' npm publish && test'
1
+ name : Release
2
+
3
+ permissions :
4
+ contents : write
2
5
3
6
on :
4
7
push :
5
- branches :
6
- - main
7
- - master
8
- release :
9
- types : [created]
10
- workflow_dispatch :
8
+ tags :
9
+ - ' v*'
11
10
12
11
jobs :
13
12
build :
14
13
runs-on : ubuntu-latest
15
14
16
15
permissions :
17
- contents : read
16
+ contents : write
18
17
packages : write
19
18
20
19
steps :
21
- - uses : actions/checkout@v2
22
- - uses : actions/setup-node@v2
20
+ - uses : actions/checkout@v3
21
+ with :
22
+ fetch-depth : 0
23
+ - uses : actions/setup-node@v3
23
24
with :
24
- node-version : ' 16 '
25
+ node-version : 18.x
25
26
registry-url : ' https://registry.npmjs.org'
26
27
- run : npm version
27
28
- run : npm install
28
29
- run : npm publish --access public
29
30
env :
30
31
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
32
+ - run : npx changelogithub
33
+ env :
34
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments