File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ jobs:
21
21
- name : Set up Bun
22
22
uses : oven-sh/setup-bun@v2
23
23
24
- - name : Update version in package.json to match release tag
24
+ - name : Verify version matches release tag
25
25
run : |
26
26
RELEASE_TAG=${GITHUB_REF#refs/tags/}
27
- jq --arg tag "$RELEASE_TAG" '.version = $tag ' package.json > package.json.tmp && mv package.json.tmp package.json
28
- git config user.name "github-actions"
29
- git config user.email "[email protected] "
30
- git commit -am "Update version to match release tag $RELEASE_TAG"
31
- git push
27
+ PACKAGE_VERSION=$( jq -r '.version' package.json)
28
+ if [ "$RELEASE_TAG" != "$PACKAGE_VERSION" ]; then
29
+ echo "Version mismatch: Release tag ($RELEASE_TAG) does not match package.json version ($PACKAGE_VERSION). "
30
+ exit 1
31
+ fi
32
32
33
33
- name : Install dependencies
34
34
run : bun i
Original file line number Diff line number Diff line change 7
7
" shader" ,
8
8
" component"
9
9
],
10
- "version" : " 1.0.1 " ,
10
+ "version" : " 1.0.2 " ,
11
11
"main" : " dist/core/index.js" ,
12
12
"module" : " dist/core/index.esm.js" ,
13
13
"publishConfig" : {
You can’t perform that action at this time.
0 commit comments