Skip to content

Commit cb697b6

Browse files
ci: Ensure GitHub Action install latest npm for trusted publishing support
1 parent e6acb9e commit cb697b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
1919
with:
20+
node-version: 22
2021
registry-url: 'https://registry.npmjs.org'
22+
- name: Update npm
23+
run: npm install -g npm@latest # NPM Trusted Publishing requires npm 11.5.1 or later
2124
- name: Configure git
2225
run: |
2326
git config user.name "GitHub Actions Bot"

0 commit comments

Comments
 (0)