File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,20 @@ jobs:
6363 node-version : 24
6464 cache : pnpm
6565 cache-dependency-path : pnpm-lock.yaml
66- registry-url : ' https://registry.npmjs.org'
6766
6867 - name : Install dependencies
6968 run : pnpm install
7069
70+ # pnpm@10 delegates `pnpm publish` to the npm CLI; OIDC trusted publishing
71+ # requires npm >=11.5.1, which Node 24's bundled npm only satisfies from
72+ # ~24.6 onward. Install a recent-enough npm so we don't depend on which Node patch resolves.
73+ - name : Ensure npm CLI supports OIDC trusted publishing
74+ run : npm install -g npm@11.5.1
75+
7176 - name : Publish to npm
7277 uses : changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1
7378 with :
7479 publish : pnpm run ci:publish
7580 env :
7681 GITHUB_TOKEN : ${{ github.token }}
77- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
78- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
7982 NPM_CONFIG_PROVENANCE : ' true'
You can’t perform that action at this time.
0 commit comments