Skip to content

Commit c09bee7

Browse files
committed
fix version setting
1 parent 3966a43 commit c09bee7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/mobile-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ jobs:
176176
VERSION_BUMP="${{ steps.determine-bump.outputs.version_bump }}"
177177
echo "🔄 Bumping version: $VERSION_BUMP"
178178
179-
# Bump package.json version if major/minor/patch using npm (no git tag)
179+
# Bump package.json version if major/minor/patch
180180
if [ "$VERSION_BUMP" != "build" ]; then
181-
echo "📦 Bumping $VERSION_BUMP version in package.json via npm..."
182-
npm version "$VERSION_BUMP" --no-git-tag-version
181+
echo "📦 Bumping $VERSION_BUMP version in package.json..."
182+
node -e "const fs = require('fs'); const pkg = require('./package.json'); const semver = require('semver'); pkg.version = semver.inc(pkg.version, '$VERSION_BUMP'); fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2) + '\n');"
183183
fi
184184
185185
# Read current version

0 commit comments

Comments
 (0)