Skip to content

Commit 70d6658

Browse files
committed
ci: publish git tags to Github (resolves RooCodeInc#444)
1 parent 0b2abee commit 70d6658

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Update GitHub Actions workflow to automatically create and push git tags during release

.github/workflows/marketplace-publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ env:
1010
jobs:
1111
publish-extension:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write # Required for pushing tags
1315
if: >
1416
( github.event_name == 'pull_request' &&
1517
github.event.pull_request.base.ref == 'main' &&
@@ -51,3 +53,10 @@ jobs:
5153
5254
npm run publish:marketplace
5355
echo "Successfully published version $current_package_version to VS Code Marketplace"
56+
57+
- name: Create and Push Git Tag
58+
run: |
59+
current_package_version=$(node -p "require('./package.json').version")
60+
git tag -a "v${current_package_version}" -m "Release v${current_package_version}"
61+
git push origin "v${current_package_version}"
62+
echo "Successfully created and pushed git tag v${current_package_version}"

0 commit comments

Comments
 (0)