File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1- name : Publish
1+ name : Release
22
33on :
44 push :
55 branches :
66 - main
77
88jobs :
9- publish :
9+ release :
1010 if : startsWith(github.event.head_commit.message, 'v')
1111
1212 runs-on : ubuntu-latest
@@ -22,17 +22,20 @@ jobs:
2222 run : npm add -g pnpm@6
2323 - name : Install dependencies
2424 run : pnpm install
25+ - name : Check formatting
26+ run : pnpm prettier:check-all
27+ - name : Lint
28+ run : pnpm eslint:lint-all
2529 - name : Test
2630 run : pnpm test
2731 - name : Publish
2832 run : npm publish
2933 env :
3034 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
3135 - name : Create Release
32- uses : actions/create-release@v1
33- env :
34- GITHUB_TOKEN : ${{ github.token }}
36+ uses : softprops/action-gh-release@v1
3537 with :
36- tag_name : ${{ github.event.head_commit.message }}
37- release_name : ${{ github.event.head_commit.message }}
3838 draft : true
39+ name : ${{ github.event.head_commit.message }}
40+ tag_name : ${{ github.event.head_commit.message }}
41+ token : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments