ci(publish): add tag-driven npm publish workflow

- add .github/workflows/publish.yml triggered by <npm-name>@<version> tags
- verify tag matches package.json name and version before publishing
- run check and test before publishing with npm provenance
- pin pnpm via packageManager field for pnpm/action-setup
- document the release flow in both READMEs
This commit is contained in:
2026-09-17 17:59:00 +08:00
parent 67837917e5
commit 77ef5483ed
4 changed files with 94 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@
"publish:packages": "pnpm -r publish --no-git-checks"
},
"type": "module",
"packageManager": "pnpm@11.25.0",
"private": true,
"dependencies": {
"@gotgenes/pi-permission-system": "^32.0.2"