@contractspec/action.version
v3.0.9
Published
GitHub Action for ContractSpec version management
Maintainers
Readme
@contractspec/action.version
Website: https://contractspec.io
GitHub Action for automated ContractSpec version management in CI.
What It Does
- Standalone action with no workspace dependencies
- Configured entirely via
action.yml; no TypeScript source
Usage
name: ContractSpec Version Manager
on: pull_request
jobs:
contractspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lssm-tech/contractspec/packages/apps/action-version@mainInputs
mode(default:analyze) — Action mode: analyze (check only) or bump (apply changes)auto-bump(default:false) — Whether to automatically applying bumps based on impact analysiscommit-message(default:chore(release): bump spec versions [skip ci]) — Commit message for version bumpscreate-pr(default:false) — Create a Pull Request instead of pushing directlypr-title(default:chore(release): version packages) — Title for the Pull Requestpr-branch(default:release/next-versions) — Branch name for the Pull Requestgithub-token(default:${{ github.token }}) — GitHub Token for creating PRs
Outputs
has-changes— Whether changes were detected/appliedspecs-bumped— Number of specs bumped
Key Files
action.yml— GitHub Action definition (entry point)
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed
- PublishConfig not supported by bun
- Move automation into actions
Notes
- Do not change
action.ymlinputs/outputs without updating downstream workflow consumers - This is a standalone action — avoid adding workspace dependencies unless necessary
