We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c8c02 commit a7cf232Copy full SHA for a7cf232
1 file changed
.github/workflows/publish.yaml
@@ -9,7 +9,6 @@ on:
9
env:
10
NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN }}
11
NX_SELF_HOSTED_REMOTE_CACHE_SERVER: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_SERVER }}
12
- NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
13
14
jobs:
15
publish:
@@ -59,10 +58,8 @@ jobs:
59
58
run: pnpm exec nx report
60
61
- name: Setup NPM
62
- run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
+ # Ensure npm 11.5.1 or later for trusted publishing
+ run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc && npm install -g npm@latest
63
64
- name: Publish packages
65
run: pnpm exec nx release publish --access public
66
- env:
67
- NPM_CONFIG_PROVENANCE: true
68
- GITHUB_TOKEN: "${{ github.token }}"
0 commit comments