Skip to content

Commit a3da1be

Browse files
authored
build: Workaround for node v22 CI failure (#2202)
nodejs/node#62425
1 parent 686f4b1 commit a3da1be

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
registry-url: 'https://registry.npmjs.org'
2121

2222
- name: Update NPM
23-
run: npm install -g npm@latest
23+
run: npm install -g npm@10.9.8 && npm install -g npm@latest
2424

2525
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
2626
- run: echo ${VERSION}
@@ -32,8 +32,8 @@ jobs:
3232

3333
- name: Define npm tag
3434
run: |
35-
if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
36-
echo ${NPM_TAG}
35+
if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
36+
echo ${NPM_TAG}
3737
3838
- name: Version the package
3939
run: npm version ${VERSION} --no-git-tag-version --save --verbose

0 commit comments

Comments
 (0)