Skip to content

Commit 6050f3a

Browse files
authored
Merge pull request #34 from reload/setup-node-action
Tweak node setup in GitHub Actions
2 parents 06419a3 + 52d294a commit 6050f3a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/qa.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v5
2020
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: "npm"
24+
cache-dependency-path: package-lock.json
2125

2226
- name: Install dependencies
2327
run: npm ci

.github/workflows/release-please.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636

3737
- if: ${{ github.event.inputs.publish-release == 'true' || steps.release.outputs.release_created }}
3838
uses: actions/setup-node@v4
39+
with:
40+
registry-url: 'https://registry.npmjs.org'
41+
node-version: 20
42+
cache: "npm"
43+
cache-dependency-path: package-lock.json
3944

4045
- if: ${{ github.event.inputs.publish-release == 'true' || steps.release.outputs.release_created }}
4146
env:

0 commit comments

Comments
 (0)