ci: npm publish with provenance (#1582)

* npm publish with provenance

* update token to allow creating id-token
This commit is contained in:
Jacob Bolda
2024-07-24 08:40:11 -05:00
committed by GitHub
parent 20a1d24ee0
commit bb09c7ca6e
3 changed files with 27 additions and 1 deletions
+11 -1
View File
@@ -9,7 +9,17 @@
"url": "https://registry.npmjs.com/${ pkg.pkgFile.pkg.name }/${ pkg.pkgFile.version }"
}
},
"publish": ["pnpm build", "pnpm publish --access public --no-git-checks"]
"publish": [
{
"command": "pnpm build",
"dryRunCommand": "pnpm build"
},
{
"command": "npm publish --provenance --access public",
"dryRunCommand": "npm publish --provenance --access public --dry-run",
"pipe": true
}
]
},
"rust": {
"version": true,