File tree Expand file tree Collapse file tree 1 file changed +24
-19
lines changed Expand file tree Collapse file tree 1 file changed +24
-19
lines changed Original file line number Diff line number Diff line change 1- name : 🎉 Releases
1+ name : Release
22
33on :
44 push :
5- branches :
6- - master
7-
8- pull_request :
9- branches :
10- - master
11-
12- workflow_dispatch :
5+ tags :
6+ - ' v*'
137
148jobs :
15- unit-test_and_lint :
9+ release :
1610 runs-on : ubuntu-latest
1711 steps :
1812 - uses : actions/checkout@v3
13+ with :
14+ fetch-depth : 0
1915
20- - uses : pnpm/action-setup@v2
16+ - name : Install pnpm
17+ uses : pnpm/action-setup@v2
2118
22- - name : Setup Node.js
19+ - name : Set node
2320 uses : actions/setup-node@v3
2421 with :
25- node-version : 18
22+ node-version : 16.x
2623 cache : pnpm
2724
25+ - run : npx changelogithub
26+ continue-on-error : true
27+ env :
28+ GITHUB_TOKEN : ${{secrets.GH_TOKEN}}
29+
2830 - name : Install
2931 run : pnpm install --no-frozen-lockfile
3032
31- - name : lint fix
32- run : pnpm run lint:fix
33+ - name : Build
34+ run : pnpm run build
3335
34- - name : unit test
36+ - name : Test
3537 run : pnpm run test
3638
37- - name : publish
39+ - name : Config npm
40+ run : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
3841 env :
39- NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
40- run : pnpm run publish
42+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
43+
44+ - name : Publish to npm
45+ run : pnpm -r publish --access public --no-git-checks
You can’t perform that action at this time.
0 commit comments