wgb5445/Guarded NPM Release
Validate version policy and run preflight, dry-run, or real npm publish with guardrails.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| package_dir | Package directory containing package.json | yes | — |
| publish_mode | preflight, dry-run, or publish | no | preflight |
| expected_tag | Optional expected tag to match package version | no | "" |
| allow_tag_prefix_v | Allow expected_tag values like v1.2.3 | no | true |
| allow_non_main | Allow publish from commits not reachable from main_branch | no | false |
| main_branch | Branch used for ancestry guard | no | main |
| require_manual_confirm | Require confirm_publish=publish and confirm_version=resolved_version when mode=publish | no | false |
| confirm_publish | Manual confirmation token | no | "" |
| confirm_version | Manual version confirmation value | no | "" |
| run_tests | Run pnpm test | no | true |
| check_version_exists | Check whether package version already exists in npm | no | false |
| publish_access | npm publish access value (public or restricted) | no | public |
Outputs
| name | description |
|---|---|
| package_name | npm package name |
| version | resolved version |
| release_channel | stable or beta |
| dist_tag | latest or beta |
| pack_path | generated npm pack tarball path |