diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94c7ecc..1ac5a99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,14 +14,18 @@ jobs: fail-fast: false matrix: platform: [ macos-latest, ubuntu-latest, windows-latest ] + node: ['16', '18'] runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v3 - - name: setup node + - name: install pnpm + uses: pnpm/action-setup@v2 + - name: setup node ${{ matrix.node }} uses: actions/setup-node@v3 with: - node-version: 16 + node-version: ${{ matrix.node }} + cache: pnpm - name: install Rust stable uses: actions-rs/toolchain@v1 with: @@ -32,4 +36,4 @@ jobs: sudo apt-get update sudo apt-get install -y webkit2gtk-4.0 - name: install app dependencies and build it - run: pnpm && pnpm build + run: pnpm install --frozen-lockfile && pnpm build diff --git a/.github/workflows/tauri-action.yml b/.github/workflows/tauri-action.yml index f1abd17..ac30cdd 100644 --- a/.github/workflows/tauri-action.yml +++ b/.github/workflows/tauri-action.yml @@ -13,14 +13,18 @@ jobs: fail-fast: false matrix: platform: [macos-latest, ubuntu-latest, windows-latest] + node: ['16', '18'] runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v3 - - name: setup node + - name: install pnpm + uses: pnpm/action-setup@v2 + - name: setup node ${{ matrix.node }} uses: actions/setup-node@v3 with: - node-version: 16 + node-version: ${{ matrix.node }} + cache: pnpm - name: install Rust stable uses: actions-rs/toolchain@v1 with: @@ -31,7 +35,7 @@ jobs: sudo apt-get update sudo apt-get install -y webkit2gtk-4.0 - name: install app dependencies and build it - run: pnpm && pnpm build + run: pnpm install --frozen-lockfile && pnpm build - uses: tauri-apps/tauri-action@v0 env: TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}