File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 77
77
- name : Run tests
78
78
run : pnpm test
79
79
80
+ - name : Bump package versions to tag
81
+ if : steps.check-tag.outputs.triggered-by-tag == 'true'
82
+ run : |
83
+ echo "Updating all package.json files to version: ${{ steps.check-tag.outputs.version }}"
84
+
85
+ # Update root package.json
86
+ npm version ${{ steps.check-tag.outputs.version }} --no-git-tag-version
87
+
88
+ # Update all package.json files in packages/*
89
+ for package_dir in packages/*/; do
90
+ if [ -f "${package_dir}package.json" ]; then
91
+ echo "Updating version in ${package_dir}package.json"
92
+ cd "$package_dir"
93
+ npm version ${{ steps.check-tag.outputs.version }} --no-git-tag-version
94
+ cd - > /dev/null
95
+ fi
96
+ done
97
+
98
+ # Show updated versions for verification
99
+ echo "Updated versions:"
100
+ echo "Root: $(grep '"version"' package.json)"
101
+ for package_dir in packages/*/; do
102
+ if [ -f "${package_dir}package.json" ]; then
103
+ echo "${package_dir}: $(grep '"version"' ${package_dir}package.json)"
104
+ fi
105
+ done
106
+
80
107
- name : Generate release notes
81
108
if : steps.check-tag.outputs.triggered-by-tag == 'true'
82
109
id : release-notes
You can’t perform that action at this time.
0 commit comments