Explorar el Código

chore: generate provenance statements for npm package (#10477)

* chore: generate provenance statements for npm package

See also https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow

* also add --provenance for covector publishes

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
rwv hace 1 año
padre
commit
008b9f7481
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      .changes/config.json
  2. 1 1
      .github/workflows/publish-cli-js.yml

+ 2 - 2
.changes/config.json

@@ -113,8 +113,8 @@
           "pipe": true
         },
         {
-          "command": "yarn publish --access public --loglevel silly --tag next",
-          "dryRunCommand": "npm publish --dry-run --access public",
+          "command": "yarn publish --access public --loglevel silly --tag next --provenance",
+          "dryRunCommand": "npm publish --dry-run --access public --provenance",
           "pipe": true
         },
         {

+ 1 - 1
.github/workflows/publish-cli-js.yml

@@ -390,7 +390,7 @@ jobs:
       - name: Publish
         run: |
           echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
-          npm publish --tag next
+          npm publish --tag next --provenance
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}