Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
- 'v*'
workflow_dispatch:

permissions:
# Enable reading repository contents (allows checkout without token)
contents: read
# Enable the use of OIDC for trusted publishing and npm provenance
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -21,10 +27,11 @@ jobs:
scope: '@doist'
registry-url: 'https://registry.npmjs.org/'

- name: Ensure npm 11.5.1 or later is installed
run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

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