Skip to content

Commit

Permalink
ci(workflow): try with .npmrc for login
Browse files Browse the repository at this point in the history
  • Loading branch information
ehasnain committed Oct 24, 2020
1 parent fbcbf15 commit bc9e152
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish package
on:
release:
types:
- published
- created

jobs:
test-and-build:
Expand All @@ -26,11 +26,9 @@ jobs:
needs: test-and-build
runs-on: ubuntu-latest
steps:
— uses: actions/checkout@v2
— uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
— run: npm publish — access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- uses: actions/checkout@v2
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > ~/.npmrc
- name: Publish package
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit bc9e152

Please sign in to comment.