Skip to content

Commit

Permalink
Fix publishing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoAC committed Nov 17, 2024
1 parent 76e156d commit 0279083
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -23,6 +25,10 @@ jobs:
- name: Install dependencies
run: yarn install --immutable
- name: Publish package
run: npm publish --provenance --access=public
run: |
set -ex
npm config set //registry.npmjs.org/:_authToken "$NODE_AUTH_TOKEN"
npm whoami
npm publish --provenance --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 0279083

Please sign in to comment.