Skip to content

Commit 1130b0d

Browse files
authored
ci: workflow fix (#150)
* ci: workflow fix * ci: also fix for prod * ci: also enable corepack in core
1 parent b405af8 commit 1130b0d

File tree

2 files changed

+46
-4
lines changed

2 files changed

+46
-4
lines changed

.github/workflows/build-develop.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
with:
1818
repository: gewis/aurora-core
1919
ref: develop
20+
path: aurora-core
21+
22+
- name: Enable Corepack for core
23+
run: cd aurora-core && corepack enable
2024

2125
- name: Setup Node.js
2226
uses: actions/setup-node@v4
@@ -27,19 +31,36 @@ jobs:
2731
uses: borales/actions-yarn@v5
2832
with:
2933
cmd: install
34+
dir: ./aurora-core
3035

3136
- name: Run tsoa
3237
uses: borales/actions-yarn@v5
3338
with:
3439
cmd: tsoa
40+
dir: ./aurora-core
41+
42+
- name: Checkout client
43+
uses: actions/checkout@v4
44+
with:
45+
path: aurora-client
46+
47+
- name: Enable Corepack
48+
run: cd aurora-client && corepack enable
49+
50+
- name: Install dependencies
51+
uses: borales/actions-yarn@v5
52+
with:
53+
cmd: install
54+
dir: ./aurora-client
3555

3656
- name: Generate client
3757
uses: borales/actions-yarn@v5
3858
with:
39-
cmd: gen-client-backoffice
59+
cmd: gen-client
60+
dir: ./aurora-client
4061

4162
- name: Copy client
42-
run: cp -r ../aurora-backoffice/src/api/ ./api
63+
run: cp -r ./aurora-client/src/api/ ./api
4364

4465
- uses: actions/upload-artifact@v4
4566
with:

.github/workflows/build-prod.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
with:
1818
repository: gewis/aurora-core
1919
ref: master
20+
path: aurora-core
21+
22+
- name: Enable Corepack for core
23+
run: cd aurora-core && corepack enable
2024

2125
- name: Setup Node.js
2226
uses: actions/setup-node@v4
@@ -27,19 +31,36 @@ jobs:
2731
uses: borales/actions-yarn@v5
2832
with:
2933
cmd: install
34+
dir: ./aurora-core
3035

3136
- name: Run tsoa
3237
uses: borales/actions-yarn@v5
3338
with:
3439
cmd: tsoa
40+
dir: ./aurora-core
41+
42+
- name: Checkout client
43+
uses: actions/checkout@v4
44+
with:
45+
path: aurora-client
46+
47+
- name: Enable Corepack
48+
run: cd aurora-client && corepack enable
49+
50+
- name: Install dependencies
51+
uses: borales/actions-yarn@v5
52+
with:
53+
cmd: install
54+
dir: ./aurora-client
3555

3656
- name: Generate client
3757
uses: borales/actions-yarn@v5
3858
with:
39-
cmd: gen-client-backoffice
59+
cmd: gen-client
60+
dir: ./aurora-client
4061

4162
- name: Copy client
42-
run: cp -r ../aurora-backoffice/src/api/ ./api
63+
run: cp -r ./aurora-client/src/api/ ./api
4364

4465
- uses: actions/upload-artifact@v4
4566
with:

0 commit comments

Comments
 (0)