Skip to content

Commit a6bb2ef

Browse files
committed
Add version-bump skill
1 parent 88f41e9 commit a6bb2ef

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

  • .github/copilot/skills/version-bump
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: version-bump
3+
description: Bump the extension to the next minor beta version for development. Increments the minor version in package.json, package-lock.json, and adds a new unreleased changelog section. USE FOR: version bump, increment version, prepare beta, new beta version, start new version, bump minor version, prep for new features.
4+
---
5+
6+
# Version Bump
7+
8+
Increment the extension's minor version for a new beta development cycle.
9+
10+
## Workflow
11+
12+
1. **Read current version** from `package.json` (`version` field). Parse as `major.minor.patch`.
13+
2. **Compute new version**: increment `minor` by 1, reset `patch` to 0. Example: `1.12.0``1.13.0`.
14+
3. **Update version in three places**:
15+
- `package.json``"version"` field
16+
- `package-lock.json` — top-level `"version"` field AND the `packages[""]``"version"` field (two occurrences total)
17+
4. **Add changelog section** in `CHANGELOG.md`: insert `## [{new version}] - Unreleased` on a blank line immediately after the `> **Note**:` blockquote and before the previous release heading.
18+
5. **Commit**: `git add package.json package-lock.json CHANGELOG.md && git commit -m "Increment version to v{new version}"`
19+
6. **Push**: ask the user for confirmation, then `git push origin main`.
20+
21+
## Rules
22+
23+
- Odd minor versions are beta/test versions (per the changelog note). This is expected.
24+
- Do not modify any other files.
25+
- Do not run `npm install` — edit `package-lock.json` directly to keep the lockfile version consistent.
26+
- Always confirm before pushing to remote.

0 commit comments

Comments
 (0)