원클릭으로
vv-release
Quick release workflow for VVCode - bump version, build, and package the extension
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Quick release workflow for VVCode - bump version, build, and package the extension
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | vv-release |
| description | Quick release workflow for VVCode - bump version, build, and package the extension |
Quick release workflow for VVCode - bump version, build, and package the extension.
This workflow helps you:
First, read the current version from package.json:
cat package.json | grep '"version"'
Show the current version to the user and ask:
If the user wants to update the version, use npm version:
npm version <new-version> --no-git-tag-version
For example:
npm version patch --no-git-tag-versionnpm version minor --no-git-tag-versionnpm version major --no-git-tag-versionnpm version 1.1.3 --no-git-tag-versionVerify the version was updated:
cat package.json | grep '"version"'
Save the confirmed/updated version number for use in later steps (changelog, summary, etc.).
Before building, update the CHANGELOG.md with the new version's changes.
Read the current CHANGELOG.md to see the format and existing entries:
head -50 CHANGELOG.md
First, try to auto-generate a draft changelog from git commits since the last release.
Find the last version tag:
git tag --list 'v*' --sort=-v:refname | head -1
If no tag exists, use the first commit:
git rev-list --max-parents=0 HEAD
Get commits since the last release:
git log <last-tag-or-first-commit>..HEAD --oneline --no-merges
Analyze the commit messages and try to categorize them into:
Generate a draft changelog in the format:
### Added
- [auto-generated items based on commits]
### Changed
- [auto-generated items based on commits]
### Fixed
- [auto-generated items based on commits]
Remove empty categories.
Show the auto-generated draft changelog to the user and ask:
"我已根据 git 提交记录自动生成以下 changelog 草稿:
[SHOW DRAFT CHANGELOG]
请选择:
Wait for user choice and input:
Changelog categories reference:
Create the final changelog entry with:
Format:
## [VERSION] - YYYY-MM-DD
[FINAL_CHANGELOG_CONTENT]
Present the complete new changelog entry to the user and ask for final confirmation:
Wait for user confirmation or modification request.
Once confirmed, update CHANGELOG.md by inserting the new entry after the header:
Use the replace_in_file tool to insert the new version entry right after the "# VVCode Changelog" line, before the first existing version entry.
Verify the changelog was updated correctly:
head -30 CHANGELOG.md
Show the user the updated changelog and confirm it looks correct.
Ensure all dependencies are up to date:
npm run install:all
This will install dependencies for both the main extension and the webview-ui.
Build the production version with optimizations:
npm run package
This command:
Wait for the build to complete successfully before proceeding.
Create the .vsix package file:
npx vsce package --no-dependencies
This will generate a file named vvcode-<version>.vsix in the current directory (e.g., vvcode-1.1.3.vsix).
Verify the package was created:
ls -lh *.vsix
Present a summary to the user:
Next steps (manual): The user can now:
git add package.json package-lock.json webview-ui/package-lock.json CHANGELOG.md
git commit -m "chore: release v{VERSION}"
git tag v{VERSION}
git push && git push --tags
If the build fails, check the error messages:
npm run lint:fix to auto-fix formatting issuesIf vsce package fails:
If install:all fails:
npm run clean:depsnpm run install:all检查 VVCode 定制功能的完整性。验证核心模块(认证、设置、余额、补全等)的文件是否存在、代码是否完整。用于合并上游后验证或日常完整性检查。使用方式:告诉 AI "检查 VVCode 功能完整性" 或 "验证 vv-auth 模块"。
智能合并 Cline 上游代码到 VVCode。支持指定日期,根据冲突数量自动选择单 commit 或批量合并策略,确保每次合并后 VVCode 功能完整。使用方式:告诉 AI "合并上游代码" 或 "同步 Cline 到 2025-01-20"。