Skip to content

Commit e9be5e4

Browse files
authored
Merge pull request #102 from geolonia/fix/oidc-publish-v2
fix(ci): install npm 11 for OIDC Trusted Publishing
2 parents 12ce2f7 + b918b5b commit e9be5e4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
with:
6565
node-version: 22
6666
cache: npm
67+
registry-url: "https://registry.npmjs.org"
6768
- name: Remove local-only dependencies
6869
run: node -e "const p=require('./package.json'); delete p.devDependencies.geonicdb; delete p.devDependencies.mongodb; require('fs').writeFileSync('package.json', JSON.stringify(p, null, 2)+'\n')"
6970
- run: npm install
@@ -76,5 +77,7 @@ jobs:
7677
exit 1
7778
fi
7879
- run: npm run build
80+
- name: Upgrade npm for OIDC Trusted Publishing
81+
run: npm install -g npm@11
7982
- name: Publish to npm (OIDC Trusted Publishing)
8083
run: npm publish --provenance

0 commit comments

Comments
 (0)