Skip to content

Commit ee2a189

Browse files
authored
chore: use pnpm setup runtime action (#246)
* chore: use pnpm setup runtime action * chore: document temporary node version duplication * fix: pin pnpm version for runtime setup * fix: avoid package manager mismatch in setup action * fix: use pnpm 11 package manager
1 parent bb6c33e commit ee2a189

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,16 @@ jobs:
100100
git config user.name "github-actions[bot]"
101101
git config user.email "github-actions[bot]@users.noreply.github.com"
102102
103-
- name: Setup pnpm
104-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
105-
106-
- name: Setup Node.js
107-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
103+
- name: Setup pnpm and Node.js
104+
uses: pnpm/setup@f7d0e5f4b1b3089d2799ef9722859e7ba314c4c8 # v1
108105
with:
109-
node-version: 24
110-
cache: pnpm
106+
# TODO: pnpm/setup does not read .nvmrc yet. Keep this in sync with .nvmrc
107+
# until https://github.com/jasongin/nvs/pull/315 lands.
108+
# pnpm/setup installs runtimes via pnpm runtime, which requires pnpm >=11.1.0.
109+
version: 11.7.0
110+
runtime: node@24
111+
cache: true
112+
install: false
111113

112114
- name: Install dependencies
113115
run: pnpm install --frozen-lockfile

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Minimum age (in days) before a package version can be installed
2+
# 7 days
3+
min-release-age=7

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "posthog-dotnet",
33
"private": true,
44
"description": "Release metadata and changesets for the PostHog .NET SDK",
5-
"packageManager": "pnpm@10.33.2",
5+
"packageManager": "pnpm@11.7.0",
66
"scripts": {
77
"changeset": "changeset"
88
},

0 commit comments

Comments
 (0)