Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ jobs:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

# Upgrade npm to a version that supports OIDC trusted publishing (>= 11.5.1)
# Upgrade npm to a version that supports OIDC trusted publishing (>= 11.5.1).
# --force bypasses the self-upgrade MODULE_NOT_FOUND bug where mid-upgrade
# npm fails to resolve its own internal modules (e.g. 'promise-retry').
- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@latest
run: npm install -g npm@latest --force

- run: npm ci

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ jobs:
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

# Upgrade npm to a version that supports OIDC trusted publishing (>= 11.5.1)
# Upgrade npm to a version that supports OIDC trusted publishing (>= 11.5.1).
# --force bypasses the self-upgrade MODULE_NOT_FOUND bug where mid-upgrade
# npm fails to resolve its own internal modules (e.g. 'promise-retry').
- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@latest
run: npm install -g npm@latest --force

- name: Install dependencies
run: npm ci
Expand Down
Loading