chore: publish to npm instead of GitHub package registry

This commit is contained in:
鲁树人 2021-12-19 20:29:01 +00:00
parent 067c45eb9e
commit c3105943ab
2 changed files with 2 additions and 7 deletions

View File

@ -14,8 +14,6 @@ jobs:
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '16.x' node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@unlock-music'
- name: 📦 Install Dependencies - name: 📦 Install Dependencies
run: npm ci run: npm ci
- name: 🧾 Test - name: 🧾 Test
@ -31,4 +29,4 @@ jobs:
run: npm publish run: npm publish
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
env: env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -12,10 +12,7 @@
"test": "jest -w 50% src", "test": "jest -w 50% src",
"prepare": "simple-git-hooks" "prepare": "simple-git-hooks"
}, },
"publishConfig": { "repository": "github:unlock-music/joox-crypto.git",
"registry": "https://npm.pkg.github.com"
},
"repository": "git://github.com/unlock-music/joox-crypto.git",
"keywords": [ "keywords": [
"joox" "joox"
], ],