fix: add NODE_AUTH_TOKEN and always-auth (#8163)

This commit is contained in:
Alex Hancock
2026-03-30 09:30:56 -04:00
committed by GitHub
parent 73b542c388
commit 074f8312b0
+9
View File
@@ -205,6 +205,7 @@ jobs:
with:
node-version: '24.10.0'
registry-url: 'https://registry.npmjs.org'
always-auth: true
- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4
@@ -298,6 +299,14 @@ jobs:
} >> "$GITHUB_STEP_SUMMARY"
fi
- name: Configure npm authentication
if: inputs.dry-run != true && github.ref == 'refs/heads/main'
run: |
cd ui
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish to npm
if: inputs.dry-run != true && github.ref == 'refs/heads/main'
run: |