Repository navigation
Build, test, and release with pnpm - #28
Merged
Merged
Conversation
pnpm is the preferred package manager at Getty, and the repo's tooling ran on npm: a contributor with only pnpm could not install, test, or run a trial. The tooling now runs on pnpm, pinned by `packageManager`, with the lockfile imported from package-lock.json so no dependency version moves. Releases publish with `pnpm publish --provenance` through trusted publishing, which pnpm 12 supports. Both Windows install jobs now run once with npm and once with pnpm, since end users install with either and the two lay a global install out differently. pnpm 12 has no `link --global`, so the trial links the checkout with `pnpm add -g <checkout>` (BUILD-03).
chris-peterson
force-pushed
the
use-pnpm-for-tooling
branch
from
November 16, 2026 20:36
9f42afb to
fdf0270
Compare
chris-peterson
force-pushed
the
use-pnpm-for-tooling
branch
from
November 16, 2026 23:02
d53ff73 to
2c212f6
Compare
The README's paragraph on generated files still told contributors to rebuild and verify with npm, which a contributor with only pnpm doesn't have. trial:on reads the global install through `pnpm ls -g` alone, so a copy installed with npm (every install before pnpm was supported) went unseen: the trial reported nothing installed, linked beside the npm copy, and trial:off then added a second copy at the latest version instead of handing the first one back (BUILD-03). trial:on now stops and names the npm copy to remove first. A terminal opened before `pnpm setup` doesn't have pnpm's global bin directory on PATH, and pnpm refuses a global add there. trial:on only hit that after building and recording the version to restore. It now runs `pnpm bin -g` first, which makes the same check, and stops with pnpm's error and the steps that fix it. pnpm's global commands ran inside the checkout, so pnpm read the `packageManager` pin and printed a warning on every one that --global skips it. They run from $HOME now. install-completions' advice to put the directory on your fpath is dropped from the trial's output, since the trial's rc block already does that.
chris-peterson
force-pushed
the
use-pnpm-for-tooling
branch
from
November 16, 2026 23:23
2c212f6 to
64aed8d
Compare
The shadowed-install notice (INSTALL-01) closed every report with a sentence about the Ruby gem's leftover launcher. The gem launcher was the case the notice was written for, but most readers now hit it with an npm or pnpm launcher in the way. To them the sentence names a tool they may never have installed and hints the fix lies in Ruby's bin directory. RubyGems stamps each launcher it generates, so the notice now reads the launcher in the way and adds the gem sentence only when the stamp is there.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
pnpm is the preferred package manager at Getty, but git-fi's own tooling (install, build, test, release, the local trial) ran on npm, so a contributor with only pnpm couldn't work on it. This PR moves the tooling to pnpm, pinned by
packageManagerinpackage.json, withpnpm-lock.yamlimported frompackage-lock.jsonso no dependency version moves. End users can still install with either: both Windows install jobs now run once withnpm install -gand once withpnpm add -g.Review guide
Release: the one path that can't be tried before it ships
.github/workflows/release.yml: publishes through trusted publishing (OIDC), which pnpm 12 supports.github/workflows/release.yml: noregistry-url, so setup-node writes no.npmrcnaming an unsetNODE_AUTH_TOKEN.github/workflows/release.yml:pnpm versionrefuses a dirty tree even without a tagCI
.github/workflows/ci.yml: both Windows install jobs run once per installer.github/scripts/install-global.ps1: sets up pnpm's global bin dir if the runner hasn't, and exportsENTRYfor theINSTALL-01stepsTrial
scripts/trial.sh: pnpm 12 has nolink --global, so the checkout is added as alink:globalscripts/trial.sh:pnpm ls -ggives a linked checkout its own version, so a link is spotted by resolving outside anynode_modulesSetup (skim)
package.json,pnpm-workspace.yaml(pnpm 12 fails the install on esbuild's build script otherwise),SPEC.mdpnpm-lock.yaml,justfile,README.md,AGENTS.md, script comments: mechanical