From 5fa06f74f15a2a21f795ecf1d03a53b990fdd5d6 Mon Sep 17 00:00:00 2001 From: Dusty Greif Date: Mon, 14 Oct 2024 13:29:59 +0000 Subject: [PATCH] Publish with provenance --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 02e5c32..970a2ec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,6 +6,7 @@ on: permissions: contents: read + id-token: write jobs: publish-npm: @@ -22,6 +23,6 @@ jobs: - run: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{ github.event.release.tag_name }} - - run: npm whoami; npm --ignore-scripts publish + - run: npm whoami; npm --ignore-scripts publish --provenance env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}