fix: github actions cause error when run 'npm install -g npm' to install the latest npm

This commit is contained in:
tiny-craft 2023-09-04 02:05:52 +08:00
parent 4fb5c860b5
commit 8912971be0
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ jobs:
- name: Build frontend assets
shell: bash
run: |
npm install -g npm
npm install -g npm@8
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
mv tmp.json wails.json
cd frontend

View File

@ -59,7 +59,7 @@ jobs:
- name: Build frontend assets
shell: bash
run: |
npm install -g npm
npm install -g npm@8
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
mv tmp.json wails.json
cd frontend

View File

@ -52,7 +52,7 @@ jobs:
- name: Build frontend assets
shell: bash
run: |
npm install -g npm
npm install -g npm@8
jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json
mv tmp.json wails.json
cd frontend