File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 npm install # sync package-lock.json
1212 ```
1313
14- 3 . Commit and tag :
14+ 3 . Commit and push :
1515 ``` sh
1616 git add CHANGELOG.md package.json package-lock.json
1717 git commit -m " chore: update version to vX.Y.Z"
18- git tag vX.Y.Z
19- git push origin main --tags
18+ git push origin main
2019 ```
2120
22- 4 . Publish the extension :
21+ 4 . Run the release workflow :
2322 ``` sh
24- npx @vscode/vsce publish
23+ gh workflow run release.yml
2524 ```
26- Or package for manual upload:
25+ This will run tests, package the extension as ` .vsix ` , and create a GitHub Release with the file attached.
26+
27+ 5 . Verify the release was created successfully:
2728 ``` sh
28- npx @vscode/vsce package
29- # Output: github-copilot-usage-X.Y.Z.vsix
29+ gh release view vX.Y.Z
3030 ```
3131
32- 5 . Create a GitHub Release (once a remote is configured) :
32+ 6 . Update the release notes on GitHub to match ` CHANGELOG.md ` :
3333 ``` sh
34- gh release create vX.Y.Z --title " vX.Y.Z" --notes-file <( grep -A50 " ## \[X.Y.Z\]" CHANGELOG.md | sed -n ' 1,/^## \[/{ /^## \[X/d; /^## \[/q; p }' )
34+ gh release edit vX.Y.Z --notes " ## What's Changed
35+ - Change 1
36+ - Change 2
37+
38+ **Full Changelog**: https://github.com/euxx/github-copilot-usage/compare/vPREV...vX.Y.Z"
3539 ```
You can’t perform that action at this time.
0 commit comments