From 497ae41d9a3ec546012d768deb2b821046bada4b Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Thu, 25 Jun 2026 10:48:50 +0200 Subject: [PATCH 1/5] chore: use pnpm setup runtime action --- .github/workflows/release.yml | 14 +++++--------- .npmrc | 3 +++ 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .npmrc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a00c015..d2f0591 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,16 +94,12 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - - name: Set up pnpm - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 + - name: Set up pnpm and Node.js + uses: pnpm/setup@f7d0e5f4b1b3089d2799ef9722859e7ba314c4c8 # v1 with: - version: 10.33.0 - - - name: Set up Node.js - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 - with: - node-version: 24 - cache: pnpm + runtime: node@24 + cache: true + install: false - name: Install changesets dependencies run: pnpm install --frozen-lockfile diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..c400337 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +# Minimum age (in days) before a package version can be installed +# 7 days +min-release-age=7 From 9e6a9eb0923cf7e8021e15c0f51fbcb67053f162 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Thu, 25 Jun 2026 11:06:06 +0200 Subject: [PATCH 2/5] chore: document temporary node version duplication --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2f0591..d3829cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -97,6 +97,8 @@ jobs: - name: Set up pnpm and Node.js uses: pnpm/setup@f7d0e5f4b1b3089d2799ef9722859e7ba314c4c8 # v1 with: + # TODO: pnpm/setup does not read .nvmrc yet. Keep this in sync with .nvmrc + # until https://github.com/jasongin/nvs/pull/315 lands. runtime: node@24 cache: true install: false From e3c564ffba6b2cfea7c3466e0785ea3e25a91452 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Thu, 25 Jun 2026 11:17:34 +0200 Subject: [PATCH 3/5] fix: pin pnpm version for runtime setup --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3829cc..feedd73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -99,6 +99,8 @@ jobs: with: # TODO: pnpm/setup does not read .nvmrc yet. Keep this in sync with .nvmrc # until https://github.com/jasongin/nvs/pull/315 lands. + # pnpm/setup installs runtimes via pnpm runtime, which requires pnpm >=11.1.0. + version: 11.7.0 runtime: node@24 cache: true install: false From d46a313b467e452d00a6e88559c9e7baef8b709f Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Thu, 25 Jun 2026 11:49:25 +0200 Subject: [PATCH 4/5] fix: avoid package manager mismatch in setup action --- .github/pnpm-setup-package.json | 4 ++++ .github/workflows/release.yml | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 .github/pnpm-setup-package.json diff --git a/.github/pnpm-setup-package.json b/.github/pnpm-setup-package.json new file mode 100644 index 0000000..3c193b4 --- /dev/null +++ b/.github/pnpm-setup-package.json @@ -0,0 +1,4 @@ +{ + "private": true, + "packageManager": "pnpm@11.7.0" +} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index feedd73..a39aeea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,6 +101,9 @@ jobs: # until https://github.com/jasongin/nvs/pull/315 lands. # pnpm/setup installs runtimes via pnpm runtime, which requires pnpm >=11.1.0. version: 11.7.0 + # Use a setup-only manifest so pnpm/setup can bootstrap pnpm runtime with pnpm >=11 + # without changing this repo's project packageManager version. + package-json-file: .github/pnpm-setup-package.json runtime: node@24 cache: true install: false From 0fe306970d32be45274f2064c6b30693f2307eb4 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Thu, 25 Jun 2026 12:20:34 +0200 Subject: [PATCH 5/5] fix: use pnpm 11 package manager --- .github/pnpm-setup-package.json | 4 ---- .github/workflows/release.yml | 3 --- package.json | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 .github/pnpm-setup-package.json diff --git a/.github/pnpm-setup-package.json b/.github/pnpm-setup-package.json deleted file mode 100644 index 3c193b4..0000000 --- a/.github/pnpm-setup-package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "private": true, - "packageManager": "pnpm@11.7.0" -} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a39aeea..feedd73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,9 +101,6 @@ jobs: # until https://github.com/jasongin/nvs/pull/315 lands. # pnpm/setup installs runtimes via pnpm runtime, which requires pnpm >=11.1.0. version: 11.7.0 - # Use a setup-only manifest so pnpm/setup can bootstrap pnpm runtime with pnpm >=11 - # without changing this repo's project packageManager version. - package-json-file: .github/pnpm-setup-package.json runtime: node@24 cache: true install: false diff --git a/package.json b/package.json index 721a942..bbde778 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "description": "Release metadata and changesets for the PostHog Ruby SDK", "license": "MIT", - "packageManager": "pnpm@10.33.0", + "packageManager": "pnpm@11.7.0", "scripts": { "changeset": "changeset" },