mirror of
https://github.com/SikongJueluo/pi-extensions.git
synced 2026-10-05 11:52:55 +08:00
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:
@@ -50,6 +50,17 @@ pnpm test # vitest run
|
||||
|
||||
Design decisions live in [docs/adr/](docs/adr/).
|
||||
|
||||
## Release
|
||||
|
||||
Bump the version in `packages/<pkg>/package.json`, commit, then tag and push:
|
||||
|
||||
```bash
|
||||
jj tag set @sikongjueluo/pi-permission-ai-judge@0.1.0 -r <rev>
|
||||
jj git push # pushes the bookmark and new tags
|
||||
```
|
||||
|
||||
The [publish workflow](.github/workflows/publish.yml) verifies the tag matches the `package.json` name and version, runs check and tests, then publishes to npm with provenance. Requires the `NPM_TOKEN` repository secret (granular token with publish rights on the `@sikongjueluo` scope, or a classic automation token).
|
||||
|
||||
## License
|
||||
|
||||
GPL-3.0
|
||||
|
||||
Reference in New Issue
Block a user