Skip to content

Commit 42dda49

Browse files
chore(deps): update actions/setup-node action to v5 (#1680)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | major | `v4` -> `v5` | --- ### Release Notes <details> <summary>actions/setup-node (actions/setup-node)</summary> ### [`v5`](https://redirect.github.com/actions/setup-node/compare/v4...v5) [Compare Source](https://redirect.github.com/actions/setup-node/compare/v4...v5) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/unraid/api). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Eli Bosley <ekbosley@gmail.com>
1 parent 81d0f3a commit 42dda49

File tree

4 files changed

+42
-97
lines changed

4 files changed

+42
-97
lines changed

.github/workflows/build-plugin.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,16 @@ jobs:
5151
with:
5252
fetch-depth: 0
5353

54-
- name: Install Node
55-
uses: actions/setup-node@v4
56-
with:
57-
node-version-file: ".nvmrc"
58-
5954
- uses: pnpm/action-setup@v4
6055
name: Install pnpm
6156
with:
6257
run_install: false
6358

64-
- name: Get pnpm store directory
65-
id: pnpm-cache
66-
shell: bash
67-
run: |
68-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
59+
- name: Install Node
60+
uses: actions/setup-node@v5
61+
with:
62+
node-version-file: ".nvmrc"
63+
cache: 'pnpm'
6964

7065
- name: Get API Version
7166
id: vars
@@ -76,14 +71,6 @@ jobs:
7671
API_VERSION=$([[ -n "$IS_TAGGED" ]] && echo "$PACKAGE_LOCK_VERSION" || echo "${PACKAGE_LOCK_VERSION}+${GIT_SHA}")
7772
echo "API_VERSION=${API_VERSION}" >> $GITHUB_OUTPUT
7873
79-
- uses: actions/cache@v4
80-
name: Setup pnpm cache
81-
with:
82-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
83-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
84-
restore-keys: |
85-
${{ runner.os }}-pnpm-store-
86-
8774
- name: Install dependencies
8875
run: |
8976
cd ${{ github.workspace }}

.github/workflows/deploy-storybook.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@v5
2424

25-
- name: Setup Node.js
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version: '22.18.0'
29-
3025
- uses: pnpm/action-setup@v4
3126
name: Install pnpm
3227
with:
3328
run_install: false
3429

30+
- name: Setup Node.js
31+
uses: actions/setup-node@v5
32+
with:
33+
node-version-file: ".nvmrc"
34+
cache: 'pnpm'
35+
3536
- name: Cache APT Packages
3637
uses: awalsh128/cache-apt-pkgs-action@v1.5.3
3738
with:

.github/workflows/main.yml

Lines changed: 24 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
913
concurrency:
1014
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1115
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
@@ -23,36 +27,23 @@ jobs:
2327
with:
2428
fetch-depth: 0
2529

30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v4
32+
with:
33+
run_install: false
34+
2635
- name: Install Node
27-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@v5
2837
with:
2938
node-version-file: ".nvmrc"
39+
cache: 'pnpm'
3040

3141
- name: Cache APT Packages
3242
uses: awalsh128/cache-apt-pkgs-action@v1.5.3
3343
with:
3444
packages: bash procps python3 libvirt-dev jq zstd git build-essential libvirt-daemon-system php-cli
3545
version: 1.0
3646

37-
- name: Install pnpm
38-
uses: pnpm/action-setup@v4
39-
with:
40-
run_install: false
41-
42-
- name: Get pnpm store directory
43-
id: pnpm-cache
44-
shell: bash
45-
run: |
46-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
47-
48-
- uses: actions/cache@v4
49-
name: Setup pnpm cache
50-
with:
51-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
52-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
53-
restore-keys: |
54-
${{ runner.os }}-pnpm-store-
55-
5647
- name: PNPM Install
5748
run: pnpm install --frozen-lockfile
5849

@@ -175,29 +166,16 @@ jobs:
175166
- name: Checkout repo
176167
uses: actions/checkout@v5
177168

178-
- name: Install Node
179-
uses: actions/setup-node@v4
180-
with:
181-
node-version-file: ".nvmrc"
182-
183169
- uses: pnpm/action-setup@v4
184170
name: Install pnpm
185171
with:
186172
run_install: false
187173

188-
- name: Get pnpm store directory
189-
id: pnpm-cache
190-
shell: bash
191-
run: |
192-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
193-
194-
- uses: actions/cache@v4
195-
name: Setup pnpm cache
174+
- name: Install Node
175+
uses: actions/setup-node@v5
196176
with:
197-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
198-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
199-
restore-keys: |
200-
${{ runner.os }}-pnpm-store-
177+
node-version-file: ".nvmrc"
178+
cache: 'pnpm'
201179

202180
- name: Cache APT Packages
203181
uses: awalsh128/cache-apt-pkgs-action@v1.5.3
@@ -228,7 +206,7 @@ jobs:
228206
id: buildnumber
229207
uses: onyxmueller/build-tag-number@v1
230208
with:
231-
token: ${{secrets.github_token}}
209+
token: ${{secrets.UNRAID_BOT_GITHUB_ADMIN_TOKEN}}
232210
prefix: ${{steps.vars.outputs.PACKAGE_LOCK_VERSION}}
233211

234212
- name: Build
@@ -252,29 +230,16 @@ jobs:
252230
- name: Checkout repo
253231
uses: actions/checkout@v5
254232

255-
- name: Install Node
256-
uses: actions/setup-node@v4
257-
with:
258-
node-version-file: ".nvmrc"
259-
260233
- uses: pnpm/action-setup@v4
261234
name: Install pnpm
262235
with:
263236
run_install: false
264237

265-
- name: Get pnpm store directory
266-
id: pnpm-cache
267-
shell: bash
268-
run: |
269-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
270-
271-
- uses: actions/cache@v4
272-
name: Setup pnpm cache
238+
- name: Install Node
239+
uses: actions/setup-node@v5
273240
with:
274-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
275-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
276-
restore-keys: |
277-
${{ runner.os }}-pnpm-store-
241+
node-version-file: ".nvmrc"
242+
cache: 'pnpm'
278243

279244
- name: Cache APT Packages
280245
uses: awalsh128/cache-apt-pkgs-action@v1.5.3
@@ -318,29 +283,16 @@ jobs:
318283
echo VITE_UNRAID_NET=${{ secrets.VITE_UNRAID_NET }} >> .env
319284
echo VITE_CALLBACK_KEY=${{ secrets.VITE_CALLBACK_KEY }} >> .env
320285
321-
- name: Install Node
322-
uses: actions/setup-node@v4
323-
with:
324-
node-version-file: ".nvmrc"
325-
326286
- uses: pnpm/action-setup@v4
327287
name: Install pnpm
328288
with:
329289
run_install: false
330290

331-
- name: Get pnpm store directory
332-
id: pnpm-cache
333-
shell: bash
334-
run: |
335-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
336-
337-
- uses: actions/cache@v4
338-
name: Setup pnpm cache
291+
- name: Install Node
292+
uses: actions/setup-node@v5
339293
with:
340-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
341-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
342-
restore-keys: |
343-
${{ runner.os }}-pnpm-store-
294+
node-version-file: ".nvmrc"
295+
cache: 'pnpm'
344296

345297
- name: PNPM Install
346298
run: |

.github/workflows/release-production.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ jobs:
2828
with:
2929
latest: true
3030
prerelease: false
31-
- uses: actions/setup-node@v4
31+
- uses: pnpm/action-setup@v4
32+
name: Install pnpm
3233
with:
33-
node-version: '22.18.0'
34+
run_install: false
35+
- uses: actions/setup-node@v5
36+
with:
37+
node-version-file: ".nvmrc"
38+
cache: 'pnpm'
3439
- run: |
3540
cat << 'EOF' > release-notes.txt
3641
${{ steps.release-info.outputs.body }}

0 commit comments

Comments
 (0)