Skip to content

Commit 5a4c711

Browse files
Upgrading npm in the correct place
1 parent 2ebc1ec commit 5a4c711

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/reusable-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ jobs:
4141
registry-url: https://npm.pkg.github.com
4242
scope: '@zaiusinc'
4343

44-
# OIDC requires npm v11.5.1 or later
45-
- run: npm install -g npm@latest
46-
4744
- name: yarn
4845
run: yarn
4946
env:
@@ -92,6 +89,9 @@ jobs:
9289
registry-url: https://registry.npmjs.org
9390
scope: '@zaiusinc'
9491

92+
# OIDC requires npm v11.5.1 or later
93+
- run: npm install -g npm@latest
94+
9595
# OIDC authorization (https://github.com/release-it/release-it/blob/main/docs/npm.md)
9696
# requires connecting to GitHub repo and workflow in package settings in npmjs.com
9797
- name: release-and-publish-to-npm

0 commit comments

Comments
 (0)