Skip to content

Commit f4e8bb1

Browse files
Merge pull request #1584 from nhsuk/dependabot/github_actions/dot-github/workflows/actions/setup-node-5
Bump actions/setup-node from 4 to 5 in /.github/workflows
2 parents 47528d1 + 368583e commit f4e8bb1

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/actions/build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ runs:
2828
path: node_modules
2929

3030
- name: Setup Node
31-
uses: actions/setup-node@v4
31+
uses: actions/setup-node@v5
3232
with:
33-
cache: ${{ steps.npm-install-cache.outputs.cache-hit != 'true' && 'npm' || '' }}
33+
package-manager-cache: ${{ steps.npm-install-cache.outputs.cache-hit != 'true' }}
3434
node-version-file: .nvmrc
3535

3636
- name: Restore build (from cache)

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ jobs:
2727

2828
- name: Setup Node
2929
if: steps.npm-install-cache.outputs.cache-hit != 'true'
30-
uses: actions/setup-node@v4
30+
uses: actions/setup-node@v5
3131
with:
32-
cache: 'npm'
3332
node-version-file: .nvmrc
3433

3534
- name: Install dependencies
@@ -61,9 +60,10 @@ jobs:
6160
path: node_modules
6261

6362
- name: Setup Node
64-
uses: actions/setup-node@v4
63+
uses: actions/setup-node@v5
6564
with:
6665
node-version-file: .nvmrc
66+
package-manager-cache: false
6767

6868
- name: Build
6969
run: npm run build

.github/workflows/pull-request.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ jobs:
4545
path: node_modules
4646

4747
- name: Setup Node
48-
uses: actions/setup-node@v4
48+
uses: actions/setup-node@v5
4949
with:
5050
node-version-file: .nvmrc
51+
package-manager-cache: false
5152

5253
- name: Run linting
5354
run: npm run lint
@@ -76,9 +77,10 @@ jobs:
7677
path: packages/*/dist/
7778

7879
- name: Setup Node
79-
uses: actions/setup-node@v4
80+
uses: actions/setup-node@v5
8081
with:
8182
node-version-file: .nvmrc
83+
package-manager-cache: false
8284

8385
- name: Setup Puppeteer
8486
run: npm run install:puppeteer
@@ -124,9 +126,10 @@ jobs:
124126
path: packages/*/dist/
125127

126128
- name: Setup Node
127-
uses: actions/setup-node@v4
129+
uses: actions/setup-node@v5
128130
with:
129131
node-version-file: .nvmrc
132+
package-manager-cache: false
130133

131134
- name: Resolve entry path
132135
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v5
1919

2020
- name: Setup Node
21-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@v5
2222
with:
2323
node-version-file: .nvmrc
2424
registry-url: https://registry.npmjs.org/

0 commit comments

Comments
 (0)