Skip to content

Commit 8912971

Browse files
committed
fix: github actions cause error when run 'npm install -g npm' to install the latest npm
1 parent 4fb5c86 commit 8912971

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/release-linux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Build frontend assets
5454
shell: bash
5555
run: |
56-
npm install -g npm
56+
npm install -g npm@8
5757
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
5858
mv tmp.json wails.json
5959
cd frontend

.github/workflows/release-macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Build frontend assets
6060
shell: bash
6161
run: |
62-
npm install -g npm
62+
npm install -g npm@8
6363
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
6464
mv tmp.json wails.json
6565
cd frontend

.github/workflows/release-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Build frontend assets
5353
shell: bash
5454
run: |
55-
npm install -g npm
55+
npm install -g npm@8
5656
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
5757
mv tmp.json wails.json
5858
cd frontend

0 commit comments

Comments
 (0)