Procházet zdrojové kódy

ci: publish with npm provenance

三咲智子 Kevin Deng před 2 roky
rodič
revize
91997bb3b3
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      .github/workflows/ci.yml

+ 4 - 0
.github/workflows/ci.yml

@@ -70,6 +70,9 @@ jobs:
       !contains(github.event.head_commit.message, 'skip release')
     runs-on: ubuntu-latest
     needs: [unit-test, lint-and-test-dts]
+    permissions:
+      contents: read
+      id-token: write
     steps:
       - uses: actions/checkout@v4
 
@@ -88,6 +91,7 @@ jobs:
       - run: pnpm release --vapor --skip-tests
         env:
           NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+          NPM_CONFIG_PROVENANCE: 'true'
 
   # benchmarks:
   #   runs-on: ubuntu-latest