Switch workflows from npm to yarn (#2750)
This commit is contained in:
parent
76d7ecd163
commit
9a789337ce
|
@ -54,8 +54,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
- run: npm run ci
|
- run: yarn run ci
|
||||||
- run: npm run lint
|
- run: yarn run lint
|
||||||
- name: Get Version Number
|
- name: Get Version Number
|
||||||
uses: nyaayaya/package-version@v1
|
uses: nyaayaya/package-version@v1
|
||||||
with:
|
with:
|
||||||
|
@ -97,15 +97,15 @@ jobs:
|
||||||
|
|
||||||
- name: Build x64 with Node.js ${{ matrix.node-version}}
|
- name: Build x64 with Node.js ${{ matrix.node-version}}
|
||||||
if: contains(matrix.runtime, 'x64')
|
if: contains(matrix.runtime, 'x64')
|
||||||
run: npm run build --if-present
|
run: yarn run build --if-present
|
||||||
|
|
||||||
- name: Build ARMv7l with Node.js ${{ matrix.node-version}}
|
- name: Build ARMv7l with Node.js ${{ matrix.node-version}}
|
||||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-armv7l')
|
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-armv7l')
|
||||||
run: npm run build:arm32 --if-present
|
run: yarn run build:arm32 --if-present
|
||||||
|
|
||||||
- name: Build ARM64 with Node.js ${{ matrix.node-version}}
|
- name: Build ARM64 with Node.js ${{ matrix.node-version}}
|
||||||
if: contains(matrix.runtime, 'arm64')
|
if: contains(matrix.runtime, 'arm64')
|
||||||
run: npm run build:arm64 --if-present
|
run: yarn run build:arm64 --if-present
|
||||||
|
|
||||||
- name: Upload Linux .zip x64 Artifact
|
- name: Upload Linux .zip x64 Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
|
@ -23,5 +23,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
- run: npm run ci
|
- run: yarn run ci
|
||||||
- run: npm run lint
|
- run: yarn run lint
|
||||||
|
|
|
@ -54,8 +54,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
- run: npm run ci
|
- run: yarn run ci
|
||||||
- run: npm run lint
|
- run: yarn run lint
|
||||||
|
|
||||||
- name: Get Version Number
|
- name: Get Version Number
|
||||||
uses: nyaayaya/package-version@v1
|
uses: nyaayaya/package-version@v1
|
||||||
|
@ -65,15 +65,15 @@ jobs:
|
||||||
|
|
||||||
- name: Build x64 with Node.js ${{ matrix.node-version}}
|
- name: Build x64 with Node.js ${{ matrix.node-version}}
|
||||||
if: contains(matrix.runtime, 'x64')
|
if: contains(matrix.runtime, 'x64')
|
||||||
run: npm run build --if-present
|
run: yarn run build --if-present
|
||||||
|
|
||||||
- name: Build ARMv7l with Node.js ${{ matrix.node-version}}
|
- name: Build ARMv7l with Node.js ${{ matrix.node-version}}
|
||||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-armv7l')
|
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-armv7l')
|
||||||
run: npm run build:arm32 --if-present
|
run: yarn run build:arm32 --if-present
|
||||||
|
|
||||||
- name: Build ARM64 with Node.js ${{ matrix.node-version}}
|
- name: Build ARM64 with Node.js ${{ matrix.node-version}}
|
||||||
if: contains(matrix.runtime, 'arm64')
|
if: contains(matrix.runtime, 'arm64')
|
||||||
run: npm run build:arm64 --if-present
|
run: yarn run build:arm64 --if-present
|
||||||
|
|
||||||
- name: Upload AppImage x64 Release
|
- name: Upload AppImage x64 Release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
|
|
|
@ -38,12 +38,11 @@
|
||||||
"pack:renderer": "webpack --mode=production --node-env=production --config _scripts/webpack.renderer.config.js",
|
"pack:renderer": "webpack --mode=production --node-env=production --config _scripts/webpack.renderer.config.js",
|
||||||
"pack:web": "webpack --mode=production --node-env=production --config _scripts/webpack.web.config.js",
|
"pack:web": "webpack --mode=production --node-env=production --config _scripts/webpack.web.config.js",
|
||||||
"pack:workers": "webpack --mode=production --node-env=production --config _scripts/webpack.workers.config.js",
|
"pack:workers": "webpack --mode=production --node-env=production --config _scripts/webpack.workers.config.js",
|
||||||
"postinstall": "npm run rebuild:electron",
|
"postinstall": "yarn run --silent rebuild:electron",
|
||||||
"prettier": "prettier --write \"{src,_scripts}/**/*.{js,vue}\"",
|
"prettier": "prettier --write \"{src,_scripts}/**/*.{js,vue}\"",
|
||||||
"rebuild:electron": "electron-builder install-app-deps",
|
"rebuild:electron": "electron-builder install-app-deps",
|
||||||
"rebuild:node": "npm rebuild",
|
|
||||||
"release": "run-s test build",
|
"release": "run-s test build",
|
||||||
"ci": "yarn install --frozen-lockfile"
|
"ci": "yarn install --silent --frozen-lockfile"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
||||||
|
|
Loading…
Reference in New Issue