From a7d063508755d15a43a64c30ab7d984f877bb1a1 Mon Sep 17 00:00:00 2001 From: "val.istar.guo" Date: Thu, 9 Nov 2023 10:41:08 +0800 Subject: [PATCH] perf: add npm provenance --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d0491d..4672517 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: - master - main name: Release +permissions: + id-token: write jobs: release: runs-on: ubuntu-latest @@ -23,7 +25,7 @@ jobs: if: ${{ steps.release.outputs.release_created }} - run: corepack pnpm i if: ${{ steps.release.outputs.release_created }} - - run: corepack pnpm publish + - run: corepack pnpm publish --provenance env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} if: ${{ steps.release.outputs.release_created }}