chore: test: use pnpm

This commit is contained in:
keiko233
2023-11-13 14:49:28 +08:00
Unverified
parent 6c692d9308
commit c4bc9aea22
9 changed files with 3933 additions and 2475 deletions

View File

@@ -34,14 +34,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "20"
cache: "yarn"
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Delete current release assets
if: startsWith(matrix.os, 'ubuntu-')
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: alpha
token: ${{ secrets.GH_TOKEN }}
tag: dev
fail-if-no-assets: false
fail-if-no-release: false
assets: |
@@ -59,10 +64,10 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf openssl
- name: Yarn install and check
- name: Pnpm install and check
run: |
yarn install --network-timeout 1000000 --frozen-lockfile
yarn run check
pnpm i
pnpm check
- name: Tauri build
uses: tauri-apps/tauri-action@v0
@@ -76,13 +81,14 @@ jobs:
releaseBody: "More new features are now supported."
releaseDraft: false
prerelease: true
tauriScript: pnpm
args: -f default-meta
- name: Portable Bundle
if: matrix.os == 'windows-latest'
run: |
yarn build -f default-meta
yarn run portable
pnpm build -f default-meta
pnpm portable
env:
TAG_NAME: dev
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}