Skip to content

Commit

Permalink
Save npm token to .npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Dec 12, 2019
1 parent f621070 commit cd16505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- run: yarn test
env:
CI: true
- name: Potentially save npm token
run: |
([[ ! -z ${{ secrets.NPM_TOKEN }} ]] && echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc) || echo "Did not write npm token"
- name: Publish to npm
run: yarn run lerna publish from-git --npm-tag canary --yes
env:
Expand Down

0 comments on commit cd16505

Please sign in to comment.