From ddcbd4c664a31177a074299c093a3cd0a242c267 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 8 Sep 2026 18:49:27 +0100 Subject: [PATCH 1/3] ci: use `pnpm/setup` and `devEngines` --- .github/workflows/autofix.yml | 8 +- .github/workflows/bench.yml | 8 +- .github/workflows/ci.yml | 26 ++- .github/workflows/cli-bench.yml | 8 +- .github/workflows/release.yml | 14 +- .github/workflows/size.yml | 12 +- package.json | 13 +- pnpm-lock.yaml | 336 ++++++++++++++++++++++++++++++++ 8 files changed, 375 insertions(+), 50 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 491c66bbe..9ab8c4084 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -18,12 +18,10 @@ jobs: persist-credentials: false fetch-depth: 0 - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: lts/* - cache: pnpm + cache: true + install: false - name: 📦 Install dependencies run: pnpm install diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 949071179..8fbafadd6 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -23,12 +23,10 @@ jobs: fetch-depth: 0 persist-credentials: false - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: lts/* - cache: pnpm + cache: true + install: false - name: 📦 Install dependencies run: pnpm install diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e065d85f..0ce166558 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,12 +24,10 @@ jobs: with: persist-credentials: false - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: lts/* - cache: pnpm + cache: true + install: false - name: 📦 Install dependencies run: pnpm install @@ -59,12 +57,11 @@ jobs: with: persist-credentials: false - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: lts/-1 - cache: pnpm + runtime: node@22 + cache: true + install: false - parallel: - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 @@ -114,12 +111,11 @@ jobs: persist-credentials: false fetch-depth: 0 - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: latest - cache: pnpm + runtime: node@latest + cache: true + install: false - name: 📦 Install dependencies run: pnpm install diff --git a/.github/workflows/cli-bench.yml b/.github/workflows/cli-bench.yml index 1ee2a7604..54c19643f 100644 --- a/.github/workflows/cli-bench.yml +++ b/.github/workflows/cli-bench.yml @@ -30,12 +30,10 @@ jobs: - name: Fetch merge base run: git fetch --no-tags --depth=1 origin ${{ github.event.pull_request.base.sha }} - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: lts/* - cache: pnpm + cache: true + install: false - name: 📦 Install dependencies run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0de5aa828..2d817bba7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,18 +83,10 @@ jobs: with: persist-credentials: false - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: 24.20.0 - cache: pnpm - - # The repo's `postinstall` runs `scripts/generate-data.ts` to write - # `packages/nuxt-cli/src/data/*.ts` that the build then bundles. uppt's - # default install path never runs it, which would produce a stale or - # broken nuxi tarball, so we install and build ourselves and pass - # `install: false` to uppt/pack. + cache: true + install: false - name: 📦 Install dependencies run: pnpm install --frozen-lockfile --ignore-scripts diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 493f64106..bcafc5e73 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -26,11 +26,9 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: lts/* + install: false - name: 📦 Install dependencies run: pnpm install @@ -68,11 +66,9 @@ jobs: with: ref: ${{ github.base_ref }} - - run: npm i -g --force corepack && corepack enable - - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 with: - node-version: lts/* + install: false - name: 📦 Install dependencies run: pnpm install diff --git a/package.json b/package.json index 6e420fec6..7c96488eb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,18 @@ "name": "nuxi-workspace", "type": "module", "private": true, - "packageManager": "pnpm@11.25.0", + "devEngines": { + "runtime": { + "name": "node", + "version": "^24.0.0", + "onFail": "download" + }, + "packageManager": { + "name": "pnpm", + "version": "11.25.0", + "onFail": "download" + } + }, "description": "⚡️ Nuxt Generation CLI Experience", "license": "MIT", "repository": "nuxt/cli", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bfc93397e..1d337c631 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,3 +1,202 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + '@pnpm/exe': + specifier: 11.25.0 + version: 11.25.0 + pnpm: + specifier: 11.25.0 + version: 11.25.0 + +packages: + + '@pnpm/exe@11.25.0': + resolution: {integrity: sha512-X19R2uC+VAJ4UJQE9c/PCdOXbDaWnZtad7WUrTHBFQuMVaK9MAHbyO/WgahQCuRtTmJkLbxcWKKCk+JeTYFm/g==} + hasBin: true + + '@pnpm/linux-arm64@11.25.0': + resolution: {integrity: sha512-ra8akqhzsbcOhKSJ9fFV8H+Oc9uGQAcp/XmIBEdT+8hPPoZCit3+RNCHmg8bLoNvpSLtRvZE0WFCMj7WyzxeBA==} + cpu: [arm64] + os: [linux] + + '@pnpm/linux-x64@11.25.0': + resolution: {integrity: sha512-pQl/L10diKQCbF73viRrtVU8qVWMTudUCSG1uZ+EWBNKtU9Sbxe6Q378diXDb1uTwSgUVMQoypxlC1MTzh7qvQ==} + cpu: [x64] + os: [linux] + + '@pnpm/linuxstatic-arm64@11.25.0': + resolution: {integrity: sha512-cYcrbB/xN1N6/5VUlFuHblb1gNyJgZv1CF5Pk1T0sHJxQMY4DFJV3OqHVAgahxyUfSTaQcVLvH1H2JFvd/+sgw==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/linuxstatic-x64@11.25.0': + resolution: {integrity: sha512-HXDtaeQod16DDMUUcVLIMxvEc1jKn7IYsNPwbwAPs/Je/d3umRPJi3Ejjdn6e9qpXN6Oon+yvSsJr7B9oDt6KA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/macos-arm64@11.25.0': + resolution: {integrity: sha512-m/eAgEqKhiSexGxWPHNXNnSRI0hudymg6K7LbrU2EoDs9IgJ28OKEz9mGxMzhkYBweEquR4k5teMNes/aToy9w==} + cpu: [arm64] + os: [darwin] + + '@pnpm/win-arm64@11.25.0': + resolution: {integrity: sha512-oAeECbtZ+eJziaBmPUkwJM8Dx7KVQ5FO367AXTjD2HGfB5ob1Bcu5hoUF5RBTgDBiP9fRQ1u13uAEpqar/6NLA==} + cpu: [arm64] + os: [win32] + + '@pnpm/win-x64@11.25.0': + resolution: {integrity: sha512-8/n+wCc0a8TRYTMFqti93Vh0cscdJ25xfMyYSDdXrLUh2ccxSFuS+SE7cNPjd/nOXoFAJvdW0kwfbyRPLa16/w==} + cpu: [x64] + os: [win32] + + '@reflink/reflink-darwin-arm64@0.1.19': + resolution: {integrity: sha512-ruy44Lpepdk1FqDz38vExBY/PVUsjxZA+chd9wozjUH9JjuDT/HEaQYA6wYN9mf041l0yLVar6BCZuWABJvHSA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@reflink/reflink-darwin-x64@0.1.19': + resolution: {integrity: sha512-By85MSWrMZa+c26TcnAy8SDk0sTUkYlNnwknSchkhHpGXOtjNDUOxJE9oByBnGbeuIE1PiQsxDG3Ud+IVV9yuA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@reflink/reflink-linux-arm64-gnu@0.1.19': + resolution: {integrity: sha512-7P+er8+rP9iNeN+bfmccM4hTAaLP6PQJPKWSA4iSk2bNvo6KU6RyPgYeHxXmzNKzPVRcypZQTpFgstHam6maVg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@reflink/reflink-linux-arm64-musl@0.1.19': + resolution: {integrity: sha512-37iO/Dp6m5DDaC2sf3zPtx/hl9FV3Xze4xoYidrxxS9bgP3S8ALroxRK6xBG/1TtfXKTvolvp+IjrUU6ujIGmA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@reflink/reflink-linux-x64-gnu@0.1.19': + resolution: {integrity: sha512-jbI8jvuYCaA3MVUdu8vLoLAFqC+iNMpiSuLbxlAgg7x3K5bsS8nOpTRnkLF7vISJ+rVR8W+7ThXlXlUQ93ulkw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@reflink/reflink-linux-x64-musl@0.1.19': + resolution: {integrity: sha512-e9FBWDe+lv7QKAwtKOt6A2W/fyy/aEEfr0g6j/hWzvQcrzHCsz07BNQYlNOjTfeytrtLU7k449H1PI95jA4OjQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@reflink/reflink-win32-arm64-msvc@0.1.19': + resolution: {integrity: sha512-09PxnVIQcd+UOn4WAW73WU6PXL7DwGS6wPlkMhMg2zlHHG65F3vHepOw06HFCq+N42qkaNAc8AKIabWvtk6cIQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@reflink/reflink-win32-x64-msvc@0.1.19': + resolution: {integrity: sha512-E//yT4ni2SyhwP8JRjVGWr3cbnhWDiPLgnQ66qqaanjjnMiu3O/2tjCPQXlcGc/DEYofpDc9fvhv6tALQsMV9w==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@reflink/reflink@0.1.19': + resolution: {integrity: sha512-DmCG8GzysnCZ15bres3N5AHCmwBwYgp0As6xjhQ47rAUTUXxJiK+lLUxaGsX3hd/30qUpVElh05PbGuxRPgJwA==} + engines: {node: '>= 10'} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + pnpm@11.25.0: + resolution: {integrity: sha512-XN6SW08HX3Jetx+64YpC/+eEUkeJ8ZthxzHLhyHsKKruFg4BqNWvT+2ypCzb8wDv4j2zVrDUoXtNY+EfirfJVg==} + engines: {node: '>=22.13'} + hasBin: true + +snapshots: + + '@pnpm/exe@11.25.0': + dependencies: + '@reflink/reflink': 0.1.19 + detect-libc: 2.1.2 + optionalDependencies: + '@pnpm/linux-arm64': 11.25.0 + '@pnpm/linux-x64': 11.25.0 + '@pnpm/linuxstatic-arm64': 11.25.0 + '@pnpm/linuxstatic-x64': 11.25.0 + '@pnpm/macos-arm64': 11.25.0 + '@pnpm/win-arm64': 11.25.0 + '@pnpm/win-x64': 11.25.0 + + '@pnpm/linux-arm64@11.25.0': + optional: true + + '@pnpm/linux-x64@11.25.0': + optional: true + + '@pnpm/linuxstatic-arm64@11.25.0': + optional: true + + '@pnpm/linuxstatic-x64@11.25.0': + optional: true + + '@pnpm/macos-arm64@11.25.0': + optional: true + + '@pnpm/win-arm64@11.25.0': + optional: true + + '@pnpm/win-x64@11.25.0': + optional: true + + '@reflink/reflink-darwin-arm64@0.1.19': + optional: true + + '@reflink/reflink-darwin-x64@0.1.19': + optional: true + + '@reflink/reflink-linux-arm64-gnu@0.1.19': + optional: true + + '@reflink/reflink-linux-arm64-musl@0.1.19': + optional: true + + '@reflink/reflink-linux-x64-gnu@0.1.19': + optional: true + + '@reflink/reflink-linux-x64-musl@0.1.19': + optional: true + + '@reflink/reflink-win32-arm64-msvc@0.1.19': + optional: true + + '@reflink/reflink-win32-x64-msvc@0.1.19': + optional: true + + '@reflink/reflink@0.1.19': + optionalDependencies: + '@reflink/reflink-darwin-arm64': 0.1.19 + '@reflink/reflink-darwin-x64': 0.1.19 + '@reflink/reflink-linux-arm64-gnu': 0.1.19 + '@reflink/reflink-linux-arm64-musl': 0.1.19 + '@reflink/reflink-linux-x64-gnu': 0.1.19 + '@reflink/reflink-linux-x64-musl': 0.1.19 + '@reflink/reflink-win32-arm64-msvc': 0.1.19 + '@reflink/reflink-win32-x64-msvc': 0.1.19 + + detect-libc@2.1.2: {} + + pnpm@11.25.0: {} + +--- lockfileVersion: '9.0' settings: @@ -66,6 +265,9 @@ importers: nf3: specifier: ^0.3.24 version: 0.3.24 + node: + specifier: runtime:^24.0.0 + version: runtime:24.20.0 nuxt: specifier: ^4.5.2 version: 4.5.2(ef8f09cf8e4ddf83bb4eecf6dcaa022c) @@ -4892,6 +5094,138 @@ packages: resolution: {integrity: sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==} engines: {node: '>=18'} + node@runtime:24.20.0: + resolution: + type: variations + variants: + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-FLW9etQKtfRxX7Ti+WSFjYINlCX+KR09ZfmJJua4nB4= + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-aix-ppc64.tar.gz + targets: + - cpu: ppc64 + os: aix + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-QOVgfl7LPbkZJyN3baLXXZZiYPx0p6nnMcG9Z92pa8g= + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-darwin-arm64.tar.gz + targets: + - cpu: arm64 + os: darwin + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-nlsmRM8Qe++2rvymdrltMpa8EBOAlvAi7TeNYjPtgfQ= + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-darwin-x64.tar.gz + targets: + - cpu: x64 + os: darwin + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-NRVgPiSHh5o5vHVxbxoq/9AnUAxkulDoRc9yyzMhkBM= + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-arm64.tar.gz + targets: + - cpu: arm64 + os: linux + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-pzSzbI0dFs5FXA65wymwfdEhwshVQ1UGSphhvJbDrcw= + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-ppc64le.tar.gz + targets: + - cpu: ppc64le + os: linux + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-2MIktG7wHweKUj2bfbeSgjBvrigemGoVotv/6UfFMB4= + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-s390x.tar.gz + targets: + - cpu: s390x + os: linux + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-1ubRu7mtSssW1YC4m+ipyafkkJJuk708MKINRuFSv4o= + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-x64-musl.tar.gz + targets: + - cpu: x64 + os: linux + libc: musl + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-hV1YH4pOsagRfjQm3iX+AncFkv68+zE2mu4f+/7p6Ow= + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-x64.tar.gz + targets: + - cpu: x64 + os: linux + - resolution: + archive: zip + bin: + node: node.exe + integrity: sha256-McZ5l0TeilRgFkMJgEDGjDaX5WyU5AfWHQ5fpfNBkdc= + prefix: node-v24.20.0-win-arm64 + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-win-arm64.zip + targets: + - cpu: arm64 + os: win32 + - resolution: + archive: zip + bin: + node: node.exe + integrity: sha256-bKyf+8qPakcJHktcdy4GBgScOHHLZ9kAwM7d5jDlRbo= + prefix: node-v24.20.0-win-x64 + type: binary + url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-win-x64.zip + targets: + - cpu: x64 + os: win32 + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-LIxQfMsPIIEtlSa6jKRUsWUqre9o/IutBvB/sRIt0e8= + type: binary + url: https://unofficial-builds.nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-arm64-musl.tar.gz + targets: + - cpu: arm64 + os: linux + libc: musl + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-muE5n+9L2JkOFXc84TJ7M2oguel9jHVJ9PQspzxD9WI= + type: binary + url: https://unofficial-builds.nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-x64-musl.tar.gz + targets: + - cpu: x64 + os: linux + libc: musl + version: 24.20.0 + hasBin: true + nopt@8.1.0: resolution: {integrity: sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==} engines: {node: ^18.17.0 || >=20.5.0} @@ -12524,6 +12858,8 @@ snapshots: node-releases@2.0.53: {} + node@runtime:24.20.0: {} + nopt@8.1.0: dependencies: abbrev: 3.0.1 From 7aa0a5f4a4dd675377f1f648067bcd8d378d15f2 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 9 Sep 2026 06:37:59 +0000 Subject: [PATCH 2/3] ci: bump `pnpm/setup` to v2.1.0 --- .github/workflows/autofix.yml | 2 +- .github/workflows/bench.yml | 2 +- .github/workflows/ci.yml | 6 +++--- .github/workflows/cli-bench.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/size.yml | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 9ab8c4084..c11804d18 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -18,7 +18,7 @@ jobs: persist-credentials: false fetch-depth: 0 - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true install: false diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 8fbafadd6..298274dd5 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -23,7 +23,7 @@ jobs: fetch-depth: 0 persist-credentials: false - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true install: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ce166558..a8c72b1c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: with: persist-credentials: false - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true install: false @@ -57,7 +57,7 @@ jobs: with: persist-credentials: false - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: runtime: node@22 cache: true @@ -111,7 +111,7 @@ jobs: persist-credentials: false fetch-depth: 0 - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: runtime: node@latest cache: true diff --git a/.github/workflows/cli-bench.yml b/.github/workflows/cli-bench.yml index 54c19643f..29a2a04aa 100644 --- a/.github/workflows/cli-bench.yml +++ b/.github/workflows/cli-bench.yml @@ -30,7 +30,7 @@ jobs: - name: Fetch merge base run: git fetch --no-tags --depth=1 origin ${{ github.event.pull_request.base.sha }} - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true install: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d817bba7..8e43abf93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,7 +83,7 @@ jobs: with: persist-credentials: false - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true install: false diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index bcafc5e73..1d9824363 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -26,7 +26,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: install: false @@ -66,7 +66,7 @@ jobs: with: ref: ${{ github.base_ref }} - - uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: install: false From 253b7c25fb428307325dda0d41c8f2ff1a13830c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 9 Sep 2026 06:38:21 +0000 Subject: [PATCH 3/3] ci: let `pnpm/setup` run the install --- .github/workflows/autofix.yml | 4 ---- .github/workflows/bench.yml | 4 ---- .github/workflows/ci.yml | 16 ++-------------- .github/workflows/cli-bench.yml | 4 ---- .github/workflows/release.yml | 3 ++- .github/workflows/size.yml | 10 ---------- 6 files changed, 4 insertions(+), 37 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index c11804d18..f76f0b610 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -21,10 +21,6 @@ jobs: - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true - install: false - - - name: 📦 Install dependencies - run: pnpm install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 298274dd5..367dd5194 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -26,10 +26,6 @@ jobs: - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true - install: false - - - name: 📦 Install dependencies - run: pnpm install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8c72b1c8..3f2fc202c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,10 +27,6 @@ jobs: - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true - install: false - - - name: 📦 Install dependencies - run: pnpm install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -61,7 +57,8 @@ jobs: with: runtime: node@22 cache: true - install: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - parallel: - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 @@ -73,11 +70,6 @@ jobs: # 2.7.5+ regress dev server / ws tests; 2.7.13 rewrites node:http (denoland/deno#33208) deno-version: 2.7.4 - - name: 📦 Install dependencies - run: pnpm install - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: 🛠 Build project run: pnpm build @@ -115,10 +107,6 @@ jobs: with: runtime: node@latest cache: true - install: false - - - name: 📦 Install dependencies - run: pnpm install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/cli-bench.yml b/.github/workflows/cli-bench.yml index 29a2a04aa..626ac3d92 100644 --- a/.github/workflows/cli-bench.yml +++ b/.github/workflows/cli-bench.yml @@ -33,10 +33,6 @@ jobs: - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: cache: true - install: false - - - name: 📦 Install dependencies - run: pnpm install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e43abf93..a5c0a1ef8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,8 +87,9 @@ jobs: with: cache: true install: false + - name: 📦 Install dependencies - run: pnpm install --frozen-lockfile --ignore-scripts + run: pnpm install --frozen-lockfile --ignore-scripts --no-runtime - name: 🔨 Generate data and build run: pnpm run postinstall diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 1d9824363..f8145f72a 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -27,11 +27,6 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 - with: - install: false - - - name: 📦 Install dependencies - run: pnpm install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -67,11 +62,6 @@ jobs: ref: ${{ github.base_ref }} - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 - with: - install: false - - - name: 📦 Install dependencies - run: pnpm install env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}