Skip to content

Commit 3f8c203

Browse files
authored
Fix Workflow Devbox Path (#1117)
* subshell fix * move release to fast subshell
1 parent 65d30d4 commit 3f8c203

6 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/ci-e2e-full.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- name: devbox installer
4343
uses: jetify-com/devbox-install-action@v0.14.0
4444
with:
45+
project-path: shells/devbox-ios.json
4546
enable-cache: 'false'
4647
- name: Resolve iOS targets
4748
run: |
@@ -88,6 +89,7 @@ jobs:
8889
- name: devbox installer
8990
uses: jetify-com/devbox-install-action@v0.14.0
9091
with:
92+
project-path: shells/devbox-android.json
9193
enable-cache: 'false'
9294
- name: Resolve Android targets
9395
run: |

.github/workflows/ci-e2e-latest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- name: devbox installer
3636
uses: jetify-com/devbox-install-action@v0.14.0
3737
with:
38+
project-path: shells/devbox-ios.json
3839
enable-cache: 'false'
3940
- name: Resolve iOS targets
4041
run: |
@@ -69,6 +70,7 @@ jobs:
6970
- name: devbox installer
7071
uses: jetify-com/devbox-install-action@v0.14.0
7172
with:
73+
project-path: shells/devbox-android.json
7274
enable-cache: 'false'
7375
- name: Resolve Android targets
7476
run: |

.github/workflows/ci-fast.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- name: devbox installer
1919
uses: jetify-com/devbox-install-action@v0.14.0
2020
with:
21+
project-path: shells/devbox-fast.json
2122
enable-cache: 'false'
2223
- name: build
2324
run: devbox run --config=shells/devbox-fast.json build

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- name: devbox installer
1818
uses: jetify-com/devbox-install-action@v0.14.0
1919
with:
20+
project-path: shells/devbox-fast.json
2021
enable-cache: 'false'
2122
- name: build
2223
run: devbox run --config=shells/devbox-fast.json build
@@ -54,6 +55,7 @@ jobs:
5455
- name: devbox installer
5556
uses: jetify-com/devbox-install-action@v0.14.0
5657
with:
58+
project-path: shells/devbox-ios.json
5759
enable-cache: 'false'
5860
- name: Resolve iOS targets
5961
run: |
@@ -101,6 +103,7 @@ jobs:
101103
- name: devbox installer
102104
uses: jetify-com/devbox-install-action@v0.14.0
103105
with:
106+
project-path: shells/devbox-android.json
104107
enable-cache: 'false'
105108
- name: Resolve Android targets
106109
run: |
@@ -135,10 +138,11 @@ jobs:
135138
- name: devbox installer
136139
uses: jetify-com/devbox-install-action@v0.14.0
137140
with:
141+
project-path: shells/devbox-fast.json
138142
enable-cache: 'false'
139143

140144
- name: Config, Build, Release
141-
run: devbox run release
145+
run: devbox run --config=shells/devbox-fast.json release
142146
env:
143147
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
144148
GH_TOKEN: ${{ secrets.GH_TOKEN }}

devbox.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@
4848
"AVD_FLAVOR=latest bash $SCRIPTS_DIR/android/manager.sh start"
4949
],
5050
"start-android": ["bash $SCRIPTS_DIR/android/manager.sh start"],
51-
"release": [
52-
"npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}",
53-
"yarn install --immutable",
54-
"yarn build",
55-
"yarn release"
56-
],
5751
"update-apps": [
5852
"yarn install --no-immutable",
5953
"yarn e2e install --no-immutable",

shells/devbox-fast.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"init_hook": [". $DEVBOX_PROJECT_ROOT/../scripts/shared/common.sh"],
1212
"scripts": {
1313
"build": ["bash $SCRIPTS_DIR/build.sh"],
14+
"release": [
15+
"npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}",
16+
"yarn install --immutable",
17+
"yarn build",
18+
"yarn release"
19+
],
1420
"format": ["treefmt"],
1521
"lint": ["treefmt --fail-on-change"]
1622
}

0 commit comments

Comments
 (0)