diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aac057c..17eb800 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,8 +3,10 @@ name: Publish to npm on: push: tags: - - '*' - workflow_dispatch: + - "*" +permissions: + id-token: write # Required for OIDC + contents: read jobs: publish: @@ -17,8 +19,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' - registry-url: 'https://registry.npmjs.org' + node-version: "20" + registry-url: "https://registry.npmjs.org" - name: Get version from tag id: version