From 2cff4000175e6b66ade881399c6f45da3d1c5194 Mon Sep 17 00:00:00 2001 From: TechQuery Date: Mon, 11 Nov 2024 00:55:50 +0800 Subject: [PATCH] [fix] GitHub actions permissions of NPM provenance --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2567bb9..8293953 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,9 @@ jobs: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} runs-on: ubuntu-latest + permissions: + contents: write + id-token: write steps: - uses: actions/checkout@v4 @@ -25,7 +28,7 @@ jobs: run: pnpm i --frozen-lockfile - name: Build & Publish - run: npm publish --acess public --provenance + run: npm publish --access public --provenance env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}