From a445c931394576821f812f25c60b79e01c6a5714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Sun, 25 Jun 2023 16:25:10 +0800 Subject: [PATCH] chore: enable npm provenance --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2856a06..5570530d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,10 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: - uses: actions/checkout@v3 with: @@ -35,3 +39,4 @@ jobs: run: pnpm -r publish --access public --no-git-checks env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_CONFIG_PROVENANCE: true