File tree 4 files changed +30
-2
lines changed
4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 41
41
run : pnpm turbo build
42
42
43
43
- name : Generate CLI executable
44
- run : bash ./scripts/build-cli.sh
44
+ run :
45
+ bash ./scripts/bump-cli-version.sh ${{ github.event.inputs.versionType }}
46
+ bash ./scripts/build-cli.sh
45
47
46
48
- name : Release
47
49
run : pnpm release-it --ci --increment=${{ github.event.inputs.versionType }} --config=packages/lib/.release-it.json
Original file line number Diff line number Diff line change 6
6
},
7
7
"@release-it/bumper" : {
8
8
"in" : " packages/lib/package.json" ,
9
- "out" : [" packages/lib/package.json" , " packages/cli/package.json " ]
9
+ "out" : [" packages/lib/package.json" ]
10
10
}
11
11
},
12
12
"github" : {
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ Unreleased]
9
+
10
+ ### Fixes 🐛
11
+
12
+ - Updated the ` --version ` command to display the version correctly
13
+
8
14
## [ 0.0.14] - 2024-10-20
9
15
10
16
### Fixes 🐛
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ -z " $1 " ]; then
4
+ echo " Error: No version type provided."
5
+ echo " Usage: $0 [patch|minor|major|<specific-version>]"
6
+ exit 1
7
+ fi
8
+
9
+ version_type=$1
10
+
11
+ cd packages/cli
12
+ npm version $version_type --no-git-tag-version
13
+
14
+ if [ $? -eq 0 ]; then
15
+ echo " Version bumped successfully to $( npm pkg get version | tr -d ' \"' ) "
16
+ else
17
+ echo " Error: Failed to bump the version."
18
+ exit 1
19
+ fi
20
+
You can’t perform that action at this time.
0 commit comments