From c1ef82c8671bca18f13911ff5c6ae40b40b72c87 Mon Sep 17 00:00:00 2001 From: Percy Ma Date: Fri, 14 Jul 2023 23:42:45 +0800 Subject: [PATCH] ci: generate provenance statements when release (#579) --- .github/workflows/release-please.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 77da1507..71f0acaf 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -9,6 +9,7 @@ jobs: permissions: contents: write pull-requests: write + id-token: write steps: - uses: google-github-actions/release-please-action@v3 id: release @@ -37,7 +38,7 @@ jobs: if: ${{ steps.release.outputs.release_created }} - run: | npm install - npm publish + npm publish --provenance env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} if: ${{ steps.release.outputs.release_created }}