Skip to content

Commit

Permalink
chore: fix npm publish (#5805)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Mar 27, 2020
1 parent fc8a46b commit 82bd76c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'

- name: Init platform
id: init
Expand Down Expand Up @@ -318,9 +319,7 @@ jobs:
- name: semantic-release
run: |
echo '//registry.yarnpkg.com/:_authToken=${NPM_TOKEN}' > ~/.npmrc
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc
yarn semantic-release --dry-run ${{github.ref != 'refs/heads/master'}}
npx semantic-release --dry-run ${{github.ref != 'refs/heads/master'}}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 82bd76c

Please sign in to comment.