with one click
prepare-release
// Prepare a release for the Azure App Configuration JavaScript Provider. Use when user mentions release preparation, version bump, creating merge PRs, preview release, or stable release for this project.
// Prepare a release for the Azure App Configuration JavaScript Provider. Use when user mentions release preparation, version bump, creating merge PRs, preview release, or stable release for this project.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | prepare-release |
| description | Prepare a release for the Azure App Configuration JavaScript Provider. Use when user mentions release preparation, version bump, creating merge PRs, preview release, or stable release for this project. |
This skill automates the release preparation workflow for the Azure App Configuration JavaScript Provider project.
Use this skill when you need to:
@azure/app-configuration-providermain – primary development branch for stable releasespreview – development branch for preview releasesrelease/stable/v{major} – release branch for stable versions (e.g., release/stable/v2)release/v{major} – release branch for preview versions (e.g., release/v2)The version must be updated in all four locations simultaneously:
src/version.ts – line 4: export const VERSION = "<version>";package.json – line 3: "version": "<version>",package-lock.json – line 3: "version": "<version>",package-lock.json – line 9: "version": "<version>",{major}.{minor}.{patch} (e.g., 2.4.0){major}.{minor}.{patch}-preview (e.g., 2.4.2-preview)Ask the user whether this is a stable or preview release, and what the new version number should be. Then follow the appropriate workflow below.
Create a version bump PR targeting main by running the version bump script:
./scripts/version-bump.sh <new_version>
For example: ./scripts/version-bump.sh 2.5.0
The script will automatically:
src/version.ts.main named <username>/version-<new_version> (e.g., linglingye/version-2.5.0).src/version.ts, package.json, package-lock.json lines 3 and 9).main with title: Version bump <new_version>.When the script prompts Proceed? [y/N], confirm by entering y.
After the version bump PR is merged, create a PR to merge main into the stable release branch by running:
./scripts/merge-to-release.sh <new_version>
For example: ./scripts/merge-to-release.sh 2.5.0
When the script prompts Proceed? [y/N], confirm by entering y.
Important: Use "Merge commit" (not squash) when merging this PR to preserve commit history.
Create a PR to merge main into preview. This will likely have conflicts.
main and preview branches.preview named <username>/resolve-conflict (or similar).main into this branch. If there are conflicts, inform the user and let them resolve manually.preview with title: Merge main to preview.Important: Use "Merge commit" (not squash) when merging this PR.
Sample PR: https://github.com/Azure/AppConfiguration-JavaScriptProvider/pull/272
After the merge-to-preview PR is merged, create a version bump PR targeting preview by running the version bump script with the --preview flag:
./scripts/version-bump.sh <new_version> --preview
For example: ./scripts/version-bump.sh 2.5.1-preview --preview
When the script prompts Proceed? [y/N], confirm by entering y.
After the version bump PR is merged, create a PR to merge preview into the preview release branch by running:
./scripts/merge-to-release.sh <new_version> --preview
For example: ./scripts/merge-to-release.sh 2.5.1-preview --preview
When the script prompts Proceed? [y/N], confirm by entering y.
Important: Use "Merge commit" (not squash) when merging this PR.
Each PR should be reviewed with the following checks: