mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-03 07:31:44 +01:00
Switch workflows from npm to yarn (#2750)
This commit is contained in:
parent
76d7ecd163
commit
9a789337ce
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -54,8 +54,8 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "yarn"
|
||||
- run: npm run ci
|
||||
- run: npm run lint
|
||||
- run: yarn run ci
|
||||
- run: yarn run lint
|
||||
- name: Get Version Number
|
||||
uses: nyaayaya/package-version@v1
|
||||
with:
|
||||
@ -97,15 +97,15 @@ jobs:
|
||||
|
||||
- name: Build x64 with Node.js ${{ matrix.node-version}}
|
||||
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}}
|
||||
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}}
|
||||
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
|
||||
uses: actions/upload-artifact@v3
|
||||
|
4
.github/workflows/linter.yml
vendored
4
.github/workflows/linter.yml
vendored
@ -23,5 +23,5 @@ jobs:
|
||||
with:
|
||||
node-version: 16.x
|
||||
cache: "yarn"
|
||||
- run: npm run ci
|
||||
- run: npm run lint
|
||||
- run: yarn run ci
|
||||
- run: yarn run lint
|
||||
|
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -54,8 +54,8 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "yarn"
|
||||
- run: npm run ci
|
||||
- run: npm run lint
|
||||
- run: yarn run ci
|
||||
- run: yarn run lint
|
||||
|
||||
- name: Get Version Number
|
||||
uses: nyaayaya/package-version@v1
|
||||
@ -65,15 +65,15 @@ jobs:
|
||||
|
||||
- name: Build x64 with Node.js ${{ matrix.node-version}}
|
||||
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}}
|
||||
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}}
|
||||
if: contains(matrix.runtime, 'arm64')
|
||||
run: npm run build:arm64 --if-present
|
||||
run: yarn run build:arm64 --if-present
|
||||
|
||||
- name: Upload AppImage x64 Release
|
||||
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: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",
|
||||
"postinstall": "npm run rebuild:electron",
|
||||
"postinstall": "yarn run --silent rebuild:electron",
|
||||
"prettier": "prettier --write \"{src,_scripts}/**/*.{js,vue}\"",
|
||||
"rebuild:electron": "electron-builder install-app-deps",
|
||||
"rebuild:node": "npm rebuild",
|
||||
"release": "run-s test build",
|
||||
"ci": "yarn install --frozen-lockfile"
|
||||
"ci": "yarn install --silent --frozen-lockfile"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
||||
|
Loading…
Reference in New Issue
Block a user