Skip to content

Commit cd96f47

Browse files
committed
ci: replaced github npm registry
1 parent 7a45573 commit cd96f47

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/task-publish-package.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ jobs:
2626
uses: actions/setup-node@v4
2727
with:
2828
node-version-file: .nvmrc
29+
registry-url: 'https://registry.npmjs.org'
2930

30-
- name: authenticate on github npm
31-
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
31+
- name: authenticate on npm
32+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
3233

3334
- name: check existing package version
3435
run: |
3536
set +e
36-
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
3738
npm_exit_code=$?
3839
set -e
3940
if [ $npm_exit_code -eq 0 ]; then

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)