From 598b10632200a8e719fe8b33e63a10a455f26dca Mon Sep 17 00:00:00 2001 From: Devin Foley Date: Fri, 24 Apr 2026 12:14:30 -0700 Subject: [PATCH] revert: restore lockfile policy in pr workflow --- .github/workflows/pr.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5b01828164..a45f392ebc 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -24,16 +24,7 @@ jobs: if: github.head_ref != 'chore/refresh-lockfile' run: | changed="$(git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}")" - manifest_pattern='(^|/)package\.json$|^pnpm-workspace\.yaml$|^\.npmrc$|^pnpmfile\.(cjs|js|mjs)$' - lockfile_changed=0 - manifest_changed=0 if printf '%s\n' "$changed" | grep -qx 'pnpm-lock.yaml'; then - lockfile_changed=1 - fi - if printf '%s\n' "$changed" | grep -Eq "$manifest_pattern"; then - manifest_changed=1 - fi - if [ "$lockfile_changed" -eq 1 ] && [ "$manifest_changed" -eq 0 ]; then echo "Do not commit pnpm-lock.yaml in pull requests. CI owns lockfile updates." exit 1 fi