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: git push --tags && git push
- run: yarn publish - run: yarn publish
env: env:
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish-npm: publish-npm:
needs: publish-gpr needs: publish-gpr
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -47,6 +47,6 @@ jobs:
- run: npm install - run: npm install
- run: npm publish --access public - run: npm publish --access public
env: 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", "main": "./app/index.js",
"name": "@millenniumearl/f95api", "name": "@millenniumearl/f95api",
"version": "1.6.4", "version": "1.6.9",
"author": { "author": {
"name": "Millennium Earl" "name": "Millennium Earl"
}, },
@ -30,7 +30,7 @@
"unit-test-mocha": "nyc --reporter=text mocha './test/index-test.js'", "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", "report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov -t 38ad72bf-a29d-4c2e-9827-96cbe037afd2",
"run-example": "node ./app/example.js", "run-example": "node ./app/example.js",
"deploy": "npm pack" "publish": "npm publish"
}, },
"engines": { "engines": {
"node": ">=10.0" "node": ">=10.0"