File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1010 - master
1111 - ' release/**'
1212
13+ permissions :
14+ id-token : write
15+ contents : read
16+
1317jobs :
1418 nodejs :
15- runs-on : ubuntu-20.04
19+ runs-on : ubuntu-latest
1620
1721 steps :
18- - uses : actions/checkout@v2
22+ - uses : actions/checkout@v4
1923 - name : Set up Node.js
20- uses : actions/setup-node@v1
24+ uses : actions/setup-node@v4
2125 with :
22- node-version : 14
26+ node-version : 20
2327 registry-url : ' https://registry.npmjs.org'
2428
2529 - name : Install packages
3034 run : yarn build && yarn test
3135 - name : Deploy to NPM
3236 if : github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
33- run : npm publish
34- env :
35- NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
37+ run : |
38+ npm install -g npm@latest
39+ npm publish
3640
3741 - name : After build
3842 if : github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
You can’t perform that action at this time.
0 commit comments