Skip to content

Commit 694a158

Browse files
committed
chore: split off cli and webui builds into separate jobs
1 parent 3dadb7f commit 694a158

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,31 @@ env:
1414
WEBUI_IMAGE: openvsx-webui
1515

1616
jobs:
17-
build-and-push-cli-and-webui:
17+
build-cli:
18+
permissions:
19+
contents: read
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
23+
with:
24+
persist-credentials: false
25+
26+
- name: Set up Node.js
27+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
28+
with:
29+
node-version: 24.x
30+
31+
- name: Install Yarn
32+
working-directory: cli
33+
run: |
34+
corepack enable
35+
corepack prepare yarn@stable --activate
36+
37+
- name: Build CLI
38+
working-directory: cli
39+
run: yarn
40+
41+
build-and-push-webui:
1842
permissions:
1943
contents: read
2044
packages: write
@@ -25,21 +49,6 @@ jobs:
2549
with:
2650
persist-credentials: false
2751

28-
- name: Set up Node.js
29-
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
30-
with:
31-
node-version: 24.x
32-
33-
- name: Install Yarn
34-
working-directory: cli
35-
run: |
36-
corepack enable
37-
corepack prepare yarn@stable --activate
38-
39-
- name: Build CLI
40-
working-directory: cli
41-
run: yarn
42-
4352
- name: Get all changed webui files
4453
id: changed_webui_files
4554
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v47.0.1

0 commit comments

Comments
 (0)