Skip to content

Commit 33701b7

Browse files
committed
fix: Another attempt to fix npm auth.
1 parent cf825a2 commit 33701b7

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,24 @@ jobs:
3131
registry-url: 'https://registry.visualpinball.org'
3232
always-auth: true
3333

34-
- name: Verify npm auth (optional)
35-
run: npm whoami --registry=https://registry.visualpinball.org
34+
- name: Configure npm auth explicitly
35+
run: |
36+
cat > ~/.npmrc <<'EOF'
37+
registry=https://registry.visualpinball.org/
38+
always-auth=true
39+
//registry.visualpinball.org/:_authToken=${NODE_AUTH_TOKEN}
40+
EOF
41+
echo "Wrote ~/.npmrc:"
42+
cat ~/.npmrc
3643
env:
3744
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3845

46+
- name: Verify npm auth
47+
run: npm whoami --registry=https://registry.visualpinball.org/
48+
3949
- name: Publish
40-
run: npm publish --registry=https://registry.visualpinball.org
41-
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
run: npm publish --registry=https://registry.visualpinball.org/
51+
4352

4453
dispatch:
4554
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)