chore: publish to npm instead of GitHub package registry
This commit is contained in:
parent
067c45eb9e
commit
c3105943ab
4
.github/workflows/build_and_publish.yml
vendored
4
.github/workflows/build_and_publish.yml
vendored
@ -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 }}
|
||||||
|
@ -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"
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user