File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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
Original file line number Diff line number Diff 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
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
Original file line number Diff line number Diff 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+ } ;
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments