From 9e987fbe7fed088460b2fd98fc43c6b51081a571 Mon Sep 17 00:00:00 2001 From: Saad Date: Fri, 13 Sep 2024 19:53:46 -0400 Subject: [PATCH] update --- .github/workflows/node.js.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 5678c94..32b1719 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -45,17 +45,15 @@ jobs: - run: npm install - run: npm run build - - name: Publish to npm dry-run + - name: Authenticate with npm env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - npm publish --dry-run + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc + + - name: Run npm publish dry run + run: npm run npm:publish:dry-run - name: Publish to npm - if: github.ref == 'refs/heads/master' && github.event_name == 'push' env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - npm publish + run: npm run npm:publish