Skip to content

Commit

Permalink
Fix path release npm
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Sep 27, 2020
1 parent 850eb18 commit 1e23caf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,12 @@ jobs:
asset_content_type: application/gzip

- name: Release nightly NPM package
if: "!startsWith(github.ref, 'refs/tags/v')"
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm version prerelease --preid nightly.${{ steps.sha.outputs.sha_short }} -no-git-tag-version
npm publish --access public --tag nightly
working-directory: ./_release
working-directory: ./release
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

Expand All @@ -182,6 +183,6 @@ jobs:
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish --access public
working-directory: ./_release
working-directory: ./release
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit 1e23caf

Please sign in to comment.