From 07f4f7998b58430137429d47a2e6878eee5e3b28 Mon Sep 17 00:00:00 2001 From: Chenfeng Bao Date: Fri, 12 Jun 2026 17:18:02 -0400 Subject: [PATCH] Fix npm publish auth config --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef464cf..54b1db8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,8 @@ jobs: - name: Publish to NPM if: startsWith(github.ref, 'refs/tags/') && matrix.node == 18 - run: npm publish + run: | + npm config set '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' + npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}