From c3105943abcb33f4ca4ccfe6822480c0874ca1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sun, 19 Dec 2021 20:29:01 +0000 Subject: [PATCH] chore: publish to npm instead of GitHub package registry --- .github/workflows/build_and_publish.yml | 4 +--- package.json | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index d85d638..db6b4cf 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -14,8 +14,6 @@ jobs: uses: actions/setup-node@v2 with: node-version: '16.x' - registry-url: 'https://npm.pkg.github.com' - scope: '@unlock-music' - name: 📦 Install Dependencies run: npm ci - name: 🧾 Test @@ -31,4 +29,4 @@ jobs: run: npm publish if: startsWith(github.ref, 'refs/tags/v') env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 2817b81..d50611c 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,7 @@ "test": "jest -w 50% src", "prepare": "simple-git-hooks" }, - "publishConfig": { - "registry": "https://npm.pkg.github.com" - }, - "repository": "git://github.com/unlock-music/joox-crypto.git", + "repository": "github:unlock-music/joox-crypto.git", "keywords": [ "joox" ],