diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d918dd8..2091bc9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,9 +15,9 @@ jobs: - name: Setup .npmrc with authentication run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - echo "registry=https://registry.npmjs.org/" >> ~/.npmrc - echo "always-auth=true" >> ~/.npmrc + npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} + npm config set registry https://registry.npmjs.org/ + npm config set always-auth true - name: Debug - Check .npmrc content run: |