Skip to content

Commit

Permalink
ci: login to npm before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
3mcd committed May 8, 2020
1 parent f6bd2a5 commit f1ea2f9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ jobs:
draft: false
prerelease: false

- name: Publish
if: steps.tag_check.outputs.exists_tag == 'false'
run: |
./node_modules/.bin/lerna publish from-package --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Authenticate with Registry
run: |
yarn logout
Expand All @@ -88,6 +80,14 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish
if: steps.tag_check.outputs.exists_tag == 'false'
run: |
./node_modules/.bin/lerna publish from-package --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit f1ea2f9

Please sign in to comment.