From 9cccec5f04af9ed5a904ec52b6c7b24506840b42 Mon Sep 17 00:00:00 2001 From: Percy Ma Date: Wed, 12 Jul 2023 13:26:27 +0800 Subject: [PATCH] ci: generate provenance statements when release --- .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 }}