File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish to npm
22
33on :
4- release :
5- types : [published]
4+ release :
5+ types : [published]
66
77jobs :
8- publish :
9- runs-on : ubuntu-latest
8+ publish :
9+ runs-on : ubuntu-latest
1010
11- steps :
12- - name : π₯ Checkout repo
13- uses : actions/checkout@v4
11+ ` ` `
12+ permissions:
13+ contents: read
14+ packages: write
1415
15- - name : βοΈ Setup Node.js
16- uses : actions/setup-node@v4
17- with :
18- node-version : 20
19- registry-url : https://registry.npmjs.org/
16+ steps:
17+ - name: π₯ Checkout repo
18+ uses: actions/checkout@v5
2019
21- - name : π¦ Install deps
22- run : npm install
20+ - name: βοΈ Setup Node.js
21+ uses: actions/setup-node@v5
22+ with:
23+ node-version: 20
24+ registry-url: https://registry.npmjs.org/
25+ cache: 'npm'
2326
24- - name : π Build
25- run : npm run build
27+ - name: π¦ Install deps
28+ run: npm ci
2629
27- - name : π Publish to npm
28- run : npm publish --access public
29- env :
30- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
30+ - name: π Build
31+ run: npm run build
32+
33+ - name: π Verify npm auth
34+ run: npm whoami
35+ env:
36+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
38+ - name: π Publish to npm
39+ run: npm publish --access public
40+ env:
41+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42+ ` ` `
You canβt perform that action at this time.
0 commit comments