File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 11name : package release
2+
23on :
3- release :
4- branches : [master]
5- types : [created]
4+ push :
5+ branches : [master]
66
77jobs :
88 build :
1717 registry-url : ' https://registry.npmjs.org'
1818 - name : Install dependencies and build 🔧
1919 run : npm ci && npm run build
20+ - name : Generate changelog
21+ uses : jaywcjlove/changelog-generator@main
22+ id : changelog
23+ with :
24+ token : ${{ secrets.GITHUB_TOKEN }}
25+ - name : Build Release
26+ uses : jaywcjlove/create-tag-action@main
27+ id : tag_release
28+ with :
29+ release : true
30+ token : ${{ secrets.GITHUB_TOKEN }}
31+ body : |
32+ ${{ steps.changelog.outputs.compareurl }}
33+
34+ ${{ steps.changelog.outputs.changelog }}
2035 - name : Publish package on NPM 📦
36+ if : steps.tag_release.outputs.successful
2137 run : npm publish --access public
2238 env :
2339 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments