From 44d5906061b99d5d27746c8e93dcc90730a36618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Rold=C3=A1n=20Betancort?= Date: Tue, 26 May 2026 17:42:44 +0100 Subject: [PATCH 1/2] fix: use pnpm in automatic-api-update workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The automatic-api-update workflow still used `bahmutov/npm-install@v1` and `yarn run buf` after the repo migrated to pnpm. `npm install` triggered the deprecated `prepublish` lifecycle hook, which invokes `pnpm build`, but pnpm wasn't installed in the runner — failing with exit 127. Switch the workflow to `pnpm/action-setup@v6` (mirroring `test.yaml`) and use `pnpm run buf`. Also rename `prepublish` → `prepublishOnly` in package.json so the build hook only fires on publish, not on install. --- .github/workflows/automatic-api-update.yaml | 7 ++++--- package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/automatic-api-update.yaml b/.github/workflows/automatic-api-update.yaml index ab6008a..7159fe0 100644 --- a/.github/workflows/automatic-api-update.yaml +++ b/.github/workflows/automatic-api-update.yaml @@ -11,9 +11,10 @@ jobs: steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 - - uses: bahmutov/npm-install@v1 + - uses: "pnpm/action-setup@v6" with: - useLockFile: false + cache: true + run_install: true - name: "Update Buf Script" id: buf-update uses: authzed/actions/buf-api-update@main @@ -33,7 +34,7 @@ jobs: if: steps.buf-update.outputs.updated == 'true' - name: "Run buf generate" if: steps.buf-update.outputs.updated == 'true' - run: "yarn run buf" + run: "pnpm run buf" - name: Create Pull Request uses: peter-evans/create-pull-request@v8.1.0 if: steps.buf-update.outputs.updated == 'true' diff --git a/package.json b/package.json index 6777a9d..9201cb0 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "format:check": "pnpm oxfmt --check", "build": "pnpm tsc", "postbuild": "rollup dist/src/index.js --file dist/src/index.cjs --format cjs && cp dist/src/index.d.ts dist/src/index.d.cts", - "prepublish": "pnpm build", + "prepublishOnly": "pnpm build", "build-js-client": "pnpm tsc --declaration false --outDir js-dist" }, "dependencies": { From 55742b8f36e0e6c404c4a275c66ed4e10b481633 Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Tue, 26 May 2026 10:45:43 -0600 Subject: [PATCH 2/2] chore: fix pnpm invocation --- .github/workflows/automatic-api-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automatic-api-update.yaml b/.github/workflows/automatic-api-update.yaml index 7159fe0..aa8e08d 100644 --- a/.github/workflows/automatic-api-update.yaml +++ b/.github/workflows/automatic-api-update.yaml @@ -34,7 +34,7 @@ jobs: if: steps.buf-update.outputs.updated == 'true' - name: "Run buf generate" if: steps.buf-update.outputs.updated == 'true' - run: "pnpm run buf" + run: "pnpm buf" - name: Create Pull Request uses: peter-evans/create-pull-request@v8.1.0 if: steps.buf-update.outputs.updated == 'true'