Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/lockfile-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,20 @@ jobs:
with:
node-version-file: .node-version

# --no-save keeps package.json and the lockfile's specifier records at
# their committed values; without it pnpm 11 update rewrites both and a
# lockfile-only commit fails frozen installs with a specifier mismatch.
- name: Refresh transitive lockfile resolutions
run: corepack pnpm update --lockfile-only -r
run: corepack pnpm update --no-save --lockfile-only -r

- name: Assert only the lockfile changed
run: |
set -euo pipefail
if ! git diff --quiet -- ':(exclude)pnpm-lock.yaml'; then
echo "unexpected working-tree changes beyond pnpm-lock.yaml:" >&2
git status --porcelain >&2
exit 1
fi
Comment thread
altaywtf marked this conversation as resolved.

- name: Open or update pull request
env:
Expand Down