File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " roo-cline " : patch
3+ ---
4+
5+ Update GitHub Actions workflow to automatically create and push git tags during release
Original file line number Diff line number Diff line change 1010jobs :
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' &&
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}"
You can’t perform that action at this time.
0 commit comments