From 781eb9e6bcffbbb07b158cbc0fed8cda832f3a0a Mon Sep 17 00:00:00 2001 From: Adam Weeden Date: Fri, 15 Sep 2023 12:05:19 -0400 Subject: [PATCH] Try to update how the token is passed to npm publish --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6982d1e..eaa8c29 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,6 +29,7 @@ jobs: key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - run: npm i - run: npm run test - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + - run: npm config set registry https://registry.npmjs.org/ + - run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }} + - run: npm whoami + - run: npm publish \ No newline at end of file