File tree Expand file tree Collapse file tree 1 file changed +27
-8
lines changed Expand file tree Collapse file tree 1 file changed +27
-8
lines changed Original file line number Diff line number Diff line change 1+ name : Publish package
2+
13on :
2- push :
3- branches : ['main' ]
4+ release :
5+ types : [published ]
46
57jobs :
6- publish :
8+ build :
79 runs-on : ubuntu-latest
810 steps :
9- - uses : actions/checkout@v4
10- - uses : actions/setup-node@v3
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+
14+ - uses : pnpm/action-setup@v2
15+ name : Install pnpm
1116 with :
12- node-version : ' 20'
13- - uses : JS-DevTools/npm-publish@v3
17+ version : 8
18+ run_install : false
19+
20+ - name : Install Node.js
21+ uses : actions/setup-node@v3
1422 with :
15- token : ${{ secrets.NPM_TOKEN }}
23+ node-version-file : ' .nvmrc'
24+ cache : pnpm
25+ registry-url : https://registry.npmjs.org
26+
27+ - name : Install dependencies
28+ run : pnpm install --frozen-lockfile
29+
30+ - name : Publish
31+ shell : bash
32+ run : pnpm publish --access public --no-git-checks
33+ env :
34+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments