File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
jobs :
16
16
release :
17
+ permissions :
18
+ contents : write
19
+
17
20
# Use the semver as the job name
18
21
name : " Release ${{ github.event.inputs.semver }}"
19
22
runs-on : ubuntu-latest
36
39
git config --local user.email "[email protected] "
37
40
git config --local user.name "GitHub Action"
38
41
npm version ${{ github.event.inputs.semver }}
42
+ VERSION=`cat package.json | grep version | tr -d " " | cut -d":" -f2 | tr -d "\","` >> $GITHUB_ENV
39
43
git push && git push --tags
40
44
41
45
- name : Publish
42
46
run : npm publish
43
47
env :
44
48
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
49
+
50
+ - uses : actions/create-release@v1
51
+ name : Release
52
+ id : create_release
53
+ env :
54
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55
+ with :
56
+ tag_name : ${{ env.VERSION }}
57
+ release_name : Release ${{ env.VERSION }}
58
+ draft : false
59
+ prerelease : false
You can’t perform that action at this time.
0 commit comments