feat(HAI-081): add changesets-based automated versioning and release workflow

- Install and configure @changesets/cli with commit/access settings
- Create version PR workflow (.github/workflows/version.yml) for automated version bumps
- Update existing release and test-release workflows with version validation
- Add example changeset and version tests for CI verification
- Add RELEASING.md guide and update README with versioning documentation
This commit is contained in:
Dustin Byrne
2026-03-26 00:53:13 -04:00
parent 7deca373f7
commit b12d34010c
10 changed files with 961 additions and 3 deletions

View File

@@ -45,6 +45,21 @@ jobs:
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Extract version from tag
run: |
VERSION="${GITHUB_REF#refs/tags/v}"
echo "RELEASE_VERSION=${VERSION}" >> $GITHUB_ENV
echo "Releasing version: ${VERSION}"
- name: Verify tag matches package version
run: |
PKG_VERSION=$(node -p "require('./packages/cli/package.json').version")
if [ "$RELEASE_VERSION" != "$PKG_VERSION" ]; then
echo "ERROR: Tag version ($RELEASE_VERSION) does not match packages/cli/package.json version ($PKG_VERSION)"
exit 1
fi
echo "Version check passed: $RELEASE_VERSION"
- name: Install dependencies
run: pnpm install