From d7c162009c5479df121f57e5b85a247e57baa3c6 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Wed, 28 Oct 2026 12:11:58 +0100 Subject: [PATCH] ci: allow pnpm builds through env instead of a per-install flag Co-Authored-By: Claude Opus 5.5 --- .github/workflows/benchmark.yml | 8 ++++++-- .github/workflows/main.yml | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 27ac9ad..f02cbfa 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -7,6 +7,10 @@ permissions: contents: read pull-requests: write +env: + pnpm_config_dangerously_allow_all_builds: true + SKIP_INSTALL_SIMPLE_GIT_HOOKS: true + jobs: benchmark: name: Benchmark @@ -33,12 +37,12 @@ jobs: version: latest - name: Install head working-directory: head - run: pnpm install --dangerously-allow-all-builds + run: pnpm install - name: Install base working-directory: base run: | [ -f benchmark/index.js ] || exit 0 - pnpm install --dangerously-allow-all-builds || { + pnpm install || { echo "::warning::base install failed, comparing without it" rm benchmark/index.js } diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7259d36..381fac2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,10 @@ on: branches: - master +env: + pnpm_config_dangerously_allow_all_builds: true + SKIP_INSTALL_SIMPLE_GIT_HOOKS: true + jobs: test: runs-on: ubuntu-latest @@ -23,7 +27,7 @@ jobs: with: version: latest - name: Install - run: pnpm install --dangerously-allow-all-builds + run: pnpm install - name: Test run: npm test - name: Report