1 parent 7a45573 commit cd96f47Copy full SHA for cd96f47
2 files changed
.github/workflows/task-publish-package.yml
@@ -26,14 +26,15 @@ jobs:
26
uses: actions/setup-node@v4
27
with:
28
node-version-file: .nvmrc
29
+ registry-url: 'https://registry.npmjs.org'
30
- - name: authenticate on github npm
31
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
+ - name: authenticate on npm
32
+ run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
33
34
- name: check existing package version
35
run: |
36
set +e
- npm view "${{ env.PACKAGE_NAME }}@${{ env.PACKAGE_VERSION }}" --registry=https://npm.pkg.github.com > /dev/null 2>&1
37
+ npm view "${{ env.PACKAGE_NAME }}@${{ env.PACKAGE_VERSION }}" > /dev/null 2>&1
38
npm_exit_code=$?
39
set -e
40
if [ $npm_exit_code -eq 0 ]; then
.npmrc
0 commit comments