We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 605ad94 commit f861ad9Copy full SHA for f861ad9
1 file changed
.github/workflows/publish-npm.yml
@@ -24,9 +24,15 @@ jobs:
24
with:
25
github_token: ${{ secrets.GITHUB_TOKEN }}
26
27
- # Tokenless trusted publishing requires npm >= 11.5; Node 22 ships npm 10.
28
- - name: Upgrade npm
29
- run: npm install -g npm@latest
+ # Tokenless trusted publishing needs npm >= 11.5.1. The repo's .nvmrc
+ # pins Node 22 (npm 10), and `npm install -g npm@latest` self-upgrade is
+ # broken on that npm (MODULE_NOT_FOUND 'promise-retry'). So switch the
30
+ # publish steps to Node 24, which already bundles npm 11.6+.
31
+ - name: Use Node with npm 11+
32
+ uses: actions/setup-node@v4
33
+ with:
34
+ node-version: "24"
35
+ registry-url: "https://registry.npmjs.org"
36
37
- name: Build packages
38
run: yarn turbo run build --filter='./packages/*'
0 commit comments