Skip to content

Commit 07eb0f8

Browse files
committed
docs: update RELEASE.md to use workflow_dispatch release flow
1 parent a13a545 commit 07eb0f8

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

RELEASE.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,29 @@
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
```

0 commit comments

Comments
 (0)