Updated publish workflow

pull/53/head
MillenniumEarl 2020-11-22 12:39:08 +01:00
parent 1967813fc1
commit f2f7bc45e9
2 changed files with 5 additions and 3 deletions

View File

@ -34,7 +34,8 @@ jobs:
- run: yarn publish - run: yarn publish
env: env:
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
publich-npm: publish-npm:
needs: publish-gpr
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -44,7 +45,7 @@ jobs:
node-version: '12.x' node-version: '12.x'
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- run: npm install - run: npm install
- run: npm publish - run: npm publish --access public
env: env:
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

1
.npmrc
View File

@ -1,2 +1,3 @@
registry=https://npm.pkg.github.com/@millenniumearl registry=https://npm.pkg.github.com/@millenniumearl
registry=https://registry.npmjs.org registry=https://registry.npmjs.org
always-auth=true