Skip to content

Commit 53a1480

Browse files
Copilotpelikhan
andauthored
Fix release workflow by adding missing Node.js setup steps (#972)
* Initial plan * Add Node.js setup to release workflow test and release jobs Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Restore vitest.config.js file that was accidentally deleted Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 23c077b commit 53a1480

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,22 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23+
- name: Set up Node.js
24+
uses: actions/setup-node@v5
25+
with:
26+
node-version: "24"
27+
cache: npm
28+
cache-dependency-path: pkg/workflow/js/package-lock.json
29+
2330
- name: Set up Go
2431
uses: actions/setup-go@v5
2532
with:
2633
go-version-file: go.mod
34+
cache: true
35+
36+
- name: Install npm dependencies
37+
run: npm ci
38+
working-directory: ./pkg/workflow/js
2739

2840
- name: Build test
2941
run: make build
@@ -40,6 +52,21 @@ jobs:
4052
uses: actions/checkout@v5
4153
with:
4254
fetch-depth: 0
55+
56+
- name: Set up Node.js
57+
uses: actions/setup-node@v5
58+
with:
59+
node-version: "24"
60+
cache: npm
61+
cache-dependency-path: pkg/workflow/js/package-lock.json
62+
63+
- name: Install npm dependencies
64+
run: npm ci
65+
working-directory: ./pkg/workflow/js
66+
67+
- name: Compile JavaScript
68+
run: npm run compile
69+
working-directory: ./pkg/workflow/js
4370

4471
- name: Release with gh-extension-precompile
4572
uses: cli/gh-extension-precompile@v2

0 commit comments

Comments
 (0)