Skip to content

Commit 476af83

Browse files
authored
Merge pull request #211 from Resgrid/develop
RU-T47 Build fix
2 parents 43dcd16 + 666cedb commit 476af83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/react-native-cicd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ jobs:
506506
shell: bash
507507
run: |
508508
# Ensure jq exists on all platforms
509-
if ! command -v jq >/dev/null 2>&1; then
509+
if ! command -v jq > /dev/null 2>&1; then
510510
echo "Installing jq..."
511511
if [[ "$RUNNER_OS" == "Linux" ]]; then
512512
sudo apt-get update && sudo apt-get install -y jq
@@ -519,11 +519,11 @@ jobs:
519519
fi
520520
fi
521521
522-
# Update the package.json
522+
# Update the package.json with 3-octet version for Electron (electron-builder requires semantic versioning)
523523
if [ -f ./package.json ]; then
524524
cp package.json package.json.bak
525-
jq '.version = "7.${{ github.run_number }}"' package.json > package.json.tmp && mv package.json.tmp package.json
526-
echo "Updated package.json version"
525+
jq '.version = "7.${{ github.run_number }}.0"' package.json > package.json.tmp && mv package.json.tmp package.json
526+
echo "Updated package.json version for Electron build"
527527
cat package.json | grep "version"
528528
else
529529
echo "package.json not found"

0 commit comments

Comments
 (0)