Skip to content

Commit 7db9d82

Browse files
authored
ci: fix npm version in publish (#46)
Following https://docs.npmjs.com/trusted-publishers#supported-cicd-providers more closely
1 parent 1811317 commit 7db9d82

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish-to-npm-on-tag.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ permissions:
1212
jobs:
1313
publish:
1414
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
id-token: write
1815
steps:
1916
- name: Check out repository
2017
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -26,6 +23,11 @@ jobs:
2623
with:
2724
cache: npm
2825
node-version-file: '.nvmrc'
26+
registry-url: 'https://registry.npmjs.org'
27+
28+
# Ensure npm 11.5.1 or later is installed
29+
- name: Update npm
30+
run: npm install -g npm@latest
2931

3032
- name: Install dependencies
3133
run: npm ci

0 commit comments

Comments
 (0)