Skip to content

Commit

Permalink
fix: game bridge build disable main branch check (#2054)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchwert authored Aug 2, 2024
1 parent be528a2 commit 6b23ebb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-game-bridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ jobs:
- name: Build Game Bridge
run: yarn nx run @imtbl/game-bridge:build --skip-nx-cache

- name: Update Version Strings
run: cd packages/game-bridge && ./scripts/updateSdkVersion.sh

# - name: Check Unity Version String Updated
# if: ${{ github.event.inputs.game_engine == 'Unity' || github.event.inputs.game_engine == 'Both' }}
# run: |
Expand Down
3 changes: 2 additions & 1 deletion packages/game-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"parcel": "^2.8.3"
},
"scripts": {
"build": "parcel build --no-cache --no-scope-hoist && yarn updateSdkVersion",
"build": "parcel build --no-cache --no-scope-hoist",
"build:local": "parcel build --no-cache --no-scope-hoist && yarn updateSdkVersion",
"d": "swc src -d dist --strip-leading-paths --ignore '**/*.test.*'",
"lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0",
"start": "parcel",
Expand Down
14 changes: 7 additions & 7 deletions packages/game-bridge/scripts/updateSdkVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ else
# Get the current branch name
current_branch=$(git rev-parse --abbrev-ref HEAD)

# Check if the current branch is "main"
if [ "$current_branch" == "main" ]; then
echo "You are on the main branch. Continuing..."
else
echo "You are not on the main branch. Exiting..."
exit 0
fi
# # Check if the current branch is "main"
# if [ "$current_branch" == "main" ]; then
# echo "You are on the main branch. Continuing..."
# else
# echo "You are not on the main branch. Exiting..."
# exit 1
# fi

# Check if TS_SDK_TAG environment variable is set
if [ -z "$TS_SDK_TAG" ]; then
Expand Down

0 comments on commit 6b23ebb

Please sign in to comment.