Updated publish workflow

pull/54/head
MillenniumEarl 2020-11-22 14:00:17 +01:00
parent d7a3789735
commit b8fa876e3c
3 changed files with 4 additions and 8 deletions

View File

@ -33,7 +33,7 @@ jobs:
- run: git push --tags && git push
- run: yarn publish
env:
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish-npm:
needs: publish-gpr
runs-on: ubuntu-latest
@ -47,6 +47,6 @@ jobs:
- run: npm install
- run: npm publish --access public
env:
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

4
.npmrc
View File

@ -1,4 +0,0 @@
//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
registry=https://npm.pkg.github.com/@millenniumearl
registry=https://registry.npmjs.org
always-auth=true

View File

@ -1,7 +1,7 @@
{
"main": "./app/index.js",
"name": "@millenniumearl/f95api",
"version": "1.6.4",
"version": "1.6.9",
"author": {
"name": "Millennium Earl"
},
@ -30,7 +30,7 @@
"unit-test-mocha": "nyc --reporter=text mocha './test/index-test.js'",
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov -t 38ad72bf-a29d-4c2e-9827-96cbe037afd2",
"run-example": "node ./app/example.js",
"deploy": "npm pack"
"publish": "npm publish"
},
"engines": {
"node": ">=10.0"