diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e19d0b..0c66b29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,24 @@ jobs: - uses: Swatinem/rust-cache@v2 + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: 22 + + - name: Install pnpm + uses: pnpm/action-setup@v6 + with: + # Pinned: pnpm 10+ rejects ignored build scripts (esbuild postinstall). + # Settings location for the allowlist has shifted between 10 and 11 + # (package.json "pnpm" field deprecated, pnpm-workspace.yaml not + # honored in our layout). Stay on 9 until that stabilizes. + version: 9 + + - name: Install frontend deps + working-directory: elo-tauri + run: pnpm install --frozen-lockfile + - name: Run tests run: cargo test --workspace @@ -88,9 +106,13 @@ jobs: node-version: 22 - name: Install pnpm - uses: pnpm/action-setup@v5 + uses: pnpm/action-setup@v6 with: - version: latest + # Pinned: pnpm 10+ rejects ignored build scripts (esbuild postinstall). + # Settings location for the allowlist has shifted between 10 and 11 + # (package.json "pnpm" field deprecated, pnpm-workspace.yaml not + # honored in our layout). Stay on 9 until that stabilizes. + version: 9 - name: Install Tauri CLI run: cargo install tauri-cli --version "^2" @@ -135,9 +157,13 @@ jobs: node-version: 22 - name: Install pnpm - uses: pnpm/action-setup@v5 + uses: pnpm/action-setup@v6 with: - version: latest + # Pinned: pnpm 10+ rejects ignored build scripts (esbuild postinstall). + # Settings location for the allowlist has shifted between 10 and 11 + # (package.json "pnpm" field deprecated, pnpm-workspace.yaml not + # honored in our layout). Stay on 9 until that stabilizes. + version: 9 - name: Install Tauri CLI run: cargo install tauri-cli --version "^2" @@ -181,7 +207,7 @@ jobs: ls -la release-assets/ - name: Create GitHub Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: generate_release_notes: true files: release-assets/* diff --git a/elo-tauri/package.json b/elo-tauri/package.json index 8bada9b..59efb88 100644 --- a/elo-tauri/package.json +++ b/elo-tauri/package.json @@ -20,8 +20,5 @@ "@tauri-apps/cli": "^2", "vite": "^6.0.3", "typescript": "~5.6.2" - }, - "pnpm": { - "onlyBuiltDependencies": ["esbuild"] } }