Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -21,6 +24,9 @@ jobs:
cache: npm
registry-url: "https://registry.npmjs.org/"

- name: Upgrade npm for Trusted Publishing
run: npm install -g npm@latest

- name: Determine pre-release tag
run: |
TAG_NAME=${GITHUB_REF_NAME}
Expand Down Expand Up @@ -50,6 +56,4 @@ jobs:
run: npm run build

- name: Publish
run: npm publish --access public --tag ${{ env.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance --access public --tag ${{ env.tag }}
Loading