Skip to content

Commit 774d2b8

Browse files
fix: troubleshoot npm publish error after changing to trusted publishers (#47)
1 parent 093904f commit 774d2b8

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ jobs:
127127
- name: Setup Node.js
128128
uses: actions/setup-node@v4
129129
with:
130-
node-version: '20'
131-
registry-url: 'https://registry.npmjs.org'
130+
node-version: '22'
132131

133132
- name: Setup Python
134133
uses: actions/setup-python@v5

.github/workflows/manual-publish.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Node.js
3737
uses: actions/setup-node@v4
3838
with:
39-
node-version: '18'
39+
node-version: '22'
4040
registry-url: 'https://registry.npmjs.org'
4141

4242
- name: Install dependencies
@@ -46,9 +46,21 @@ jobs:
4646
run: npm run build
4747

4848
- name: Publish to npm
49+
id: npm_publish
4950
working-directory: packages/flarelette-jwt-ts
51+
env:
52+
NODE_AUTH_TOKEN: ''
5053
run: npm publish --provenance --access public
5154

55+
- name: Upload npm debug logs (on failure)
56+
if: failure() && steps.npm_publish.outcome == 'failure'
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: npm-debug-logs
60+
path: /home/runner/.npm/_logs/*
61+
if-no-files-found: warn
62+
retention-days: 14
63+
5264
publish-pypi:
5365
runs-on: ubuntu-latest
5466
if: ${{ github.event.inputs.package == 'python' || github.event.inputs.package == 'both' }}

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ jobs:
4242
- name: Setup Node.js
4343
uses: actions/setup-node@v4
4444
with:
45-
node-version: '18'
46-
registry-url: 'https://registry.npmjs.org'
45+
node-version: '22'
4746

4847
- name: Install dependencies
4948
run: npm ci

0 commit comments

Comments
 (0)