diff --git a/.github/workflows/automatic-api-update.yaml b/.github/workflows/automatic-api-update.yaml index ab6008a..aa8e08d 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 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": {