Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions .github/workflows/create-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ jobs:
echo "Updated $ROOT_CHANGELOG"
fi

- name: Sync lockfile to bumped versions
shell: bash
# Regenerate yarn.lock so the new release branch is committed with a
# lockfile that matches the bumped package.json versions. Otherwise the
# first `yarn install --immutable` (CI / publish setup) on this branch
# fails: "The lockfile would have been modified by this install...".
run: yarn install --no-immutable

- name: Commit changes
shell: bash
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@ jobs:
"
done

- name: Sync lockfile to bumped versions
if: ${{ inputs.dry_run != true }}
# Regenerate yarn.lock so it matches the just-bumped package.json versions
# and prunes orphaned old-version entries. Without this the committed
# lockfile drifts, and the next `yarn install --immutable` (e.g. this job's
# setup step on the following release) fails with:
# "The lockfile would have been modified by this install, which is forbidden."
run: yarn install --no-immutable

- name: Commit version bump
if: ${{ inputs.dry_run != true }}
run: |
Expand Down
Loading