Skip to content

Commit 8fc6806

Browse files
authored
fix: avoid auth errors for npm publish action (#195)
- node22 -> node24 - skip `npm i -g npm` because it fails - remove `registry-url` because it causes auth errors - move build step before versioning steps to avoid version bumps when build could potentially fail
1 parent bb3d620 commit 8fc6806

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ jobs:
1818
- uses: actions/checkout@v6
1919
- uses: actions/setup-node@v6
2020
with:
21-
node-version: 22
22-
registry-url: https://registry.npmjs.org/
23-
- run: npm install -g npm@latest
21+
node-version: 24
2422
- run: npm ci --ignore-scripts --no-fund --no-audit
2523
- run: npm test
24+
- run: npm run build
2625
- name: Bump version
2726
run: |
2827
VERSION=${GITHUB_REF_NAME#v}
@@ -34,5 +33,4 @@ jobs:
3433
git add package.json package-lock.json
3534
git commit -m "chore: bump version to ${GITHUB_REF_NAME#v}"
3635
git push origin HEAD:main
37-
- run: npm run build
3836
- run: npm publish --access public

0 commit comments

Comments
 (0)