From 8375062181b4ace7d2cd50050d45ee391be9f868 Mon Sep 17 00:00:00 2001 From: freezy Date: Wed, 20 Aug 2025 20:38:11 +0200 Subject: [PATCH] fix: npm auth. --- .github/workflows/publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2a126d597..2978638a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,8 +29,15 @@ jobs: with: node-version: '20.x' registry-url: 'https://registry.visualpinball.org' + always-auth: true + + - name: Verify npm auth (optional) + run: npm whoami --registry=https://registry.visualpinball.org + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish - run: npm publish + run: npm publish --registry=https://registry.visualpinball.org env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}