File tree 2 files changed +31
-0
lines changed
2 files changed +31
-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 GitHub Releases
Original file line number Diff line number Diff line change 62
62
current_package_version=$(node -p "require('./package.json').version")
63
63
npm run publish:marketplace
64
64
echo "Successfully published version $current_package_version to VS Code Marketplace"
65
+
66
+ - name : Create GitHub Release
67
+ env :
68
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
+ run : |
70
+ current_package_version=$(node -p "require('./package.json').version")
71
+
72
+ # Extract changelog for current version
73
+ changelog_content=$(awk -v ver="## [${current_package_version}]" '
74
+ $0 ~ ver {flag=1; next}
75
+ /^## \[/ {if (flag) exit}
76
+ flag {print}
77
+ ' CHANGELOG.md)
78
+
79
+ # If changelog extraction failed, use a default message
80
+ if [ -z "$changelog_content" ]; then
81
+ changelog_content="Release v${current_package_version}"
82
+ fi
83
+
84
+ # Create release with changelog content
85
+ gh release create "v${current_package_version}" \
86
+ --title "Release v${current_package_version}" \
87
+ --notes "$changelog_content" \
88
+ --target ${{ env.GIT_REF }} \
89
+ bin/roo-cline-${current_package_version}.vsix
90
+ echo "Successfully created GitHub Release v${current_package_version}"
You can’t perform that action at this time.
0 commit comments