This document provides step-by-step instructions for maintainers to release a new version of the Neon Schema Diff Action.
- Write access to the repository
- Git configured with appropriate credentials
- Node.js 21+ installed
- Bun package manager installed
Create a new branch following the naming convention release/X.Y.Z:
git checkout main
git pull origin main
git checkout -b release/X.Y.ZReplace X.Y.Z with the appropriate semantic version number (e.g.,
release/1.2.0).
Update the version attribute in package.json:
{
"version": "X.Y.Z"
}Follow the same steps described in the development documentation:
bun installbun run testEnsure all tests pass before proceeding.
cp .env.example .env
# Configure your environment variables in .env
bun run local-actionTest the action thoroughly to ensure it works as expected with the new version.
bun run bundle-
Commit your changes:
git add . git commit -m "build: bump version to X.Y.Z" git push origin release/X.Y.Z
-
Create a pull request from
release/X.Y.Ztomainbranch -
Ensure all CI checks pass
-
Get the pull request reviewed and approved
-
Merge the pull request to
main
After the PR is merged, create the necessary Git tags:
git checkout main
git pull origin main
# Create the specific version tag
git tag vX.Y.Z
git push origin vX.Y.Z
# Update the major version tag (e.g., v1, v2, etc.)
git tag -f vX
git push origin vX --forceNote: The major version tag (e.g., v1) allows users to reference the
latest version within that major release automatically.
Follow the GitHub documentation for creating releases:
- Navigate to the repository on GitHub
- Click Releases on the right side of the repository page
- Click Draft a new release
- Configure the release:
- Choose a tag: Select
vX.Y.Z(the tag you just created) - Release title:
vX.Y.Z - Description: Generate release notes
- Choose a tag: Select
- Click Publish release