Skip to content

Commit 4528621

Browse files
committed
ci: add setup-node to lint and e2e-test jobs
Hardened runners may not have Node.js pre-installed (reported in #unblock-github-action-for-eng). Add explicit setup-node step to the lint and e2e-test jobs which run npm commands but previously relied on the runner having Node available. The unit-test and release build jobs already have setup-node. The coverage and dco-check jobs don't run npm commands and don't need it. Co-authored-by: Isaac
1 parent 5a8c367 commit 4528621

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
labels: linux-ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
22+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
23+
with:
24+
node-version: 20
2225
- name: Get JFrog OIDC token
2326
run: |
2427
set -euo pipefail
@@ -151,6 +154,9 @@ jobs:
151154

152155
steps:
153156
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
157+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
158+
with:
159+
node-version: 20
154160
- name: Get JFrog OIDC token
155161
run: |
156162
set -euo pipefail

0 commit comments

Comments
 (0)