Skip to content

Commit

Permalink
fix publish (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntduan authored Feb 24, 2023
1 parent 22a256d commit 15f50e9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ jobs:
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn install --immutable
- run: yarn build
- run: |
echo npmAuthToken: "\${NPM_TOKEN}" >> ./.yarnrc.yml
- name: publish
run: |
yarn install --immutable
yarn build
yarn npm publish
run: yarn npm publish --tolerate-republish --access public
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
git checkout ./.yarnrc.yml

0 comments on commit 15f50e9

Please sign in to comment.