mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
ci: publish git tags to Github (resolves #444)
This commit is contained in:
parent
0b2abee923
commit
70d6658ca4
2 changed files with 14 additions and 0 deletions
5
.changeset/automatic-tags-publish.md
Normal file
5
.changeset/automatic-tags-publish.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Update GitHub Actions workflow to automatically create and push git tags during release
|
||||
9
.github/workflows/marketplace-publish.yml
vendored
9
.github/workflows/marketplace-publish.yml
vendored
|
|
@ -10,6 +10,8 @@ env:
|
|||
jobs:
|
||||
publish-extension:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # Required for pushing tags
|
||||
if: >
|
||||
( github.event_name == 'pull_request' &&
|
||||
github.event.pull_request.base.ref == 'main' &&
|
||||
|
|
@ -51,3 +53,10 @@ jobs:
|
|||
|
||||
npm run publish:marketplace
|
||||
echo "Successfully published version $current_package_version to VS Code Marketplace"
|
||||
|
||||
- name: Create and Push Git Tag
|
||||
run: |
|
||||
current_package_version=$(node -p "require('./package.json').version")
|
||||
git tag -a "v${current_package_version}" -m "Release v${current_package_version}"
|
||||
git push origin "v${current_package_version}"
|
||||
echo "Successfully created and pushed git tag v${current_package_version}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue