@lssm-tech/action.versionaction.version
GitHub Action for ContractSpec version management
@lssm-tech/action.versionSource, release and verification context
Source snapshot bcc79fcc · Declared package version 5.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.
See where this package fits.
Follow a declared connection, inspect an import, then open the source guide when you need the detail.
Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.
@lssm-tech/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
permissions:
contents: write
packages: read
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: lssm-tech/contractspec/packages/apps/action-version@main
with:
github-packages-token: ${{ secrets.CONTRACTSPEC_PACKAGES_TOKEN }}For affected private GitHub Packages dependencies, github-packages-token must be a GitHub token that can read the ContractSpec packages granted to the consuming repository, bot, or GitHub App.
Entrées
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 PRsgithub-packages-token— Optional token used to configure private GitHub Packages auth before dependency installs
Outputs
has-changes— Whether changes were detected/appliedspecs-bumped— Number of specs bumped
Key Files
action.yml— GitHub Action definition (entry point)tests/action-version.test.ts— standalone host test (bun run test): runs theaction.ymlsteps locally with recordingbun/bunx/git/ghstubs; requiresjq
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
Declared capabilities.
This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.
Imports and export paths.
1 entriesThese are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.
1 import
No export paths match this search.
Dependencies and related packages.
Runtime dependencies 1
- @lssm-tech/lib.contracts-spec
- workspace:^
Package scripts.
Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.
bun test