Skip to content

Commit

Permalink
Fix broken publish
Browse files Browse the repository at this point in the history
  • Loading branch information
de-luca committed Mar 26, 2022
1 parent d74e928 commit e06a808
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
- run: npm ci
- run: npm run build

- if: contains(github.ref, '-beta')
run: npm publish --access public --tag beta
- name: Create .npmrc
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- if: contains(github.ref, '-beta')
run: npm publish --access public --tag beta

- if: "!contains(github.ref, '-beta')"
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit e06a808

Please sign in to comment.