From 76fee53d4a9b2fd40eea9c9562a32b9c784d3ef4 Mon Sep 17 00:00:00 2001 From: The-Best-Codes Date: Mon, 22 Jul 2024 11:01:28 -0500 Subject: [PATCH] ci: update npm-publish-github-packages.yml --- .github/workflows/npm-publish-github-packages.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index b7876a5..3b89ad4 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -31,9 +31,7 @@ jobs: node-version: 16 registry-url: https://npm.pkg.github.com/ - run: npm ci - - run: npm login - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}