File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Version Consistency Check
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - " src/github/**"
9
+
10
+ jobs :
11
+ github :
12
+ name : Check GitHub server version consistency
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+
17
+ - name : Check version consistency
18
+ run : |
19
+ PACKAGE_VERSION=$(node -p "require('./src/github/package.json').version")
20
+ TS_VERSION=$(grep -o '".*"' ./src/github/common/version.ts | tr -d '"')
21
+
22
+ if [ "$PACKAGE_VERSION" != "$TS_VERSION" ]; then
23
+ echo "::error::Version mismatch detected!"
24
+ echo "::error::package.json version: $PACKAGE_VERSION"
25
+ echo "::error::version.ts version: $TS_VERSION"
26
+ exit 1
27
+ else
28
+ echo "✅ Versions match: $PACKAGE_VERSION"
29
+ fi
Original file line number Diff line number Diff line change
1
+ // If the format of this file changes, so it doesn't simply export a VERSION constant,
2
+ // this will break .github/workflows/version-check.yml.
1
3
export const VERSION = "0.6.2" ;
You can’t perform that action at this time.
0 commit comments