Skip to content

Commit 83e164d

Browse files
authored
Use setup-node action and .nvmrc specified version for all installers (#20060)
* Update all installer builds to use the version of node specified in chia-blockchain-gui .nvmrc * Update the workflows that didn't previously use the setup-node action to use it, to make future updates easier (this action now works with all the currently supported platforms we build on)
1 parent e836b4a commit 83e164d

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.github/workflows/build-linux-installer-deb.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ jobs:
9292
env:
9393
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9494

95+
- name: Setup Node per .nvmrc in GUI
96+
uses: actions/setup-node@v5
97+
with:
98+
node-version-file: chia-blockchain-gui/.nvmrc
99+
95100
- name: Get latest madmax plotter
96101
env:
97102
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-linux-installer-rpm.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ jobs:
8282
env:
8383
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8484

85+
- name: Setup Node per .nvmrc in GUI
86+
uses: actions/setup-node@v5
87+
with:
88+
node-version-file: chia-blockchain-gui/.nvmrc
89+
8590
- name: Get latest madmax plotter
8691
env:
8792
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-macos-installers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ jobs:
176176

177177
- uses: chia-network/actions/activate-venv@main
178178

179-
- name: Setup Node 20.x
180-
uses: actions/setup-node@v4
179+
- name: Setup Node per .nvmrc in GUI
180+
uses: actions/setup-node@v5
181181
with:
182-
node-version: "20.x"
182+
node-version-file: chia-blockchain-gui/.nvmrc
183183

184184
- name: Prepare GUI cache
185185
id: gui-ref

.github/workflows/build-windows-installer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ jobs:
9595
with:
9696
python-version: ${{ matrix.python-version }}
9797

98-
- name: Setup Node 20.x
99-
uses: actions/setup-node@v4
98+
- name: Setup Node per .nvmrc in GUI
99+
uses: actions/setup-node@v5
100100
with:
101-
node-version: "20.x"
101+
node-version-file: chia-blockchain-gui/.nvmrc
102102

103103
- name: Test for secrets access
104104
id: check_secrets

0 commit comments

Comments
 (0)