Skip to content

Commit 5d69730

Browse files
committed
Update version
1 parent da37e09 commit 5d69730

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
- name: Set up Bun
2222
uses: oven-sh/setup-bun@v2
2323

24-
- name: Update version in package.json to match release tag
24+
- name: Verify version matches release tag
2525
run: |
2626
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
3232
3333
- name: Install dependencies
3434
run: bun i

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"shader",
88
"component"
99
],
10-
"version": "1.0.1",
10+
"version": "1.0.2",
1111
"main": "dist/core/index.js",
1212
"module": "dist/core/index.esm.js",
1313
"publishConfig": {

0 commit comments

Comments
 (0)