Skip to content
Merged
Changes from 2 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
6 changes: 4 additions & 2 deletions .github/workflows/npmPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
required: false
type: boolean

permissions:
id-token: write # Required for OIDC: https://docs.npmjs.com/trusted-publishers
contents: read

jobs:
version:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -102,8 +106,6 @@ jobs:

- name: Publish to npm
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set name version in GitHub ENV
run: echo "NAME=$(jq '.name' package.json)" >> "$GITHUB_ENV"
Expand Down