File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 99
1010 permissions :
1111 contents : read
12- id-token : write # The OIDC ID token is used for authentication with JSR.
12+ id-token : write # The OIDC ID token is used for authentication with JSR and NPM
1313
1414 env :
1515 NODE_VERSION : ' 22.x'
2424 with :
2525 node-version : ${{ env.NODE_VERSION }}
2626 registry-url : ' https://registry.npmjs.org'
27- - name : Confirm installed Node version
28- run : node -v
27+ - name : Upgrade NPM
28+ # Trusted Publishing requires at least npm 11.5.1
29+ run : npm install -g npm@^11.5.1
30+
31+ - name : Confirm installed Node and NPM versions
32+ run : ' echo "Node: $(node -v)" && echo "NPM: $(npm -v)"'
2933
3034 # Install Deno
3135 - name : Setup Deno ${{ env.DENO_VERSION }}
5660 # Publish to JSR and NPM
5761 - name : Publish to JSR and NPM
5862 run : deno task publish:server
59- env :
60- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments