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
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'index.js'

permissions:
id-token: write
contents: write

jobs:
Expand All @@ -28,6 +29,9 @@ jobs:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Update npm
run: npm install -g npm@latest

- name: Install dependencies
run: npm install

Expand All @@ -42,9 +46,7 @@ jobs:
git push origin main --follow-tags

- name: Publish to npm
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npm publish --provenance --access=public

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
Expand Down