Skip to content

Commit a22f9fc

Browse files
committed
fix(ci): use JS build-meta for Node compatibility in EAS config
1 parent b8fd21e commit a22f9fc

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/release-android.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ jobs:
5757
set -euo pipefail
5858
5959
mkdir -p src
60-
cat > src/build-meta.ts <<EOF
60+
cat > src/build-meta.js <<EOF
6161
export const buildMeta = {
6262
gitCommitHash: "${GITHUB_SHA::7}",
6363
gitTag: "${GITHUB_REF_NAME}",
6464
workflowUrl: "https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}",
65-
} as const;
65+
};
6666
EOF
6767
68-
echo "Generated src/build-meta.ts"
69-
cat src/build-meta.ts
68+
echo "Generated src/build-meta.js"
69+
cat src/build-meta.js
7070
7171
- name: Commit generated build meta
7272
shell: bash
@@ -76,7 +76,7 @@ jobs:
7676
git config user.name "github-actions"
7777
git config user.email "github-actions@github.com"
7878
79-
git add src/build-meta.ts
79+
git add src/build-meta.js
8080
git commit -m "build(ci): inject build metadata"
8181
8282
- name: Build Android

.github/workflows/release-ios.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ jobs:
5858
set -euo pipefail
5959
6060
mkdir -p src
61-
cat > src/build-meta.ts <<EOF
61+
cat > src/build-meta.js <<EOF
6262
export const buildMeta = {
6363
gitCommitHash: "${GITHUB_SHA::7}",
6464
gitTag: "${GITHUB_REF_NAME}",
6565
workflowUrl: "https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}",
66-
} as const;
66+
};
6767
EOF
6868
69-
echo "Generated src/build-meta.ts"
70-
cat src/build-meta.ts
69+
echo "Generated src/build-meta.js"
70+
cat src/build-meta.js
7171
7272
- name: Commit generated build meta
7373
shell: bash
@@ -77,7 +77,7 @@ jobs:
7777
git config user.name "github-actions"
7878
git config user.email "github-actions@github.com"
7979
80-
git add src/build-meta.ts
80+
git add src/build-meta.js
8181
git commit -m "build(ci): inject build metadata"
8282
8383
- name: Build iOS

build-meta.ts renamed to build-meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export const buildMeta = {
22
gitCommitHash: "local",
33
gitTag: "dev",
44
workflowUrl: "https://github.com/toqenapp/mobile-react-native/actions",
5-
} as const;
5+
};

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
".expo/types/**/*.ts",
1515
"expo-env.d.ts",
1616
"nativewind-env.d.ts",
17-
".dev/**/*"
18-
, "app.config.js" ]
17+
".dev/**/*",
18+
"app.config.js",
19+
"build-meta.js"
20+
]
1921
}

0 commit comments

Comments
 (0)