ci: preserve lockfile platform metadata during repair

This commit is contained in:
Dotta 2026-09-04 08:33:55 -05:00
parent 33425f79d3
commit d228d1f5ec
4 changed files with 5 additions and 4 deletions

View File

@ -17,6 +17,7 @@ test('lockfile repair workflows resolve dependencies instead of updating metadat
assert.ok(repairCommands.length > 0, `${workflow} must contain a lockfile repair command`);
for (const command of repairCommands) {
assert.match(command, /--resolution-only/);
assert.match(command, /--ignore-scripts/);
assert.doesNotMatch(command, /--lockfile-only/);
}

View File

@ -87,7 +87,7 @@ jobs:
- name: Refresh lockfile for Docker build context
run: |
set -euo pipefail
pnpm install --ignore-scripts --no-frozen-lockfile
pnpm install --resolution-only --ignore-scripts --no-frozen-lockfile
changed="$(git status --porcelain)"
if [ -z "$changed" ]; then
@ -281,7 +281,7 @@ jobs:
- name: Refresh lockfile for Docker build context
run: |
set -euo pipefail
pnpm install --ignore-scripts --no-frozen-lockfile
pnpm install --resolution-only --ignore-scripts --no-frozen-lockfile
changed="$(git status --porcelain)"
if [ -z "$changed" ]; then

View File

@ -346,7 +346,7 @@ jobs:
id: regen_lockfile
run: |
cp pnpm-lock.yaml "$RUNNER_TEMP/pnpm-lock.before.yaml"
pnpm install --ignore-scripts --no-frozen-lockfile
pnpm install --resolution-only --ignore-scripts --no-frozen-lockfile
if cmp -s "$RUNNER_TEMP/pnpm-lock.before.yaml" pnpm-lock.yaml; then
echo "regenerated=0" >> "$GITHUB_OUTPUT"
else

View File

@ -35,7 +35,7 @@ jobs:
cache: pnpm
- name: Refresh pnpm lockfile
run: pnpm install --ignore-scripts --no-frozen-lockfile
run: pnpm install --resolution-only --ignore-scripts --no-frozen-lockfile
- name: Fail on unexpected file changes
run: |