DEV: Correct ember-5 lockfile generation (#24983)

The regen_ember_5_lockfile script was actually just duplicating the ember3 lockfile without changes 🤦‍♂️. This commit fixes that, and updates the ember-version-enforcement workflow to detect lockfile issues in future.
This commit is contained in:
David Taylor
2023-12-20 11:45:01 +00:00
committed by GitHub
parent f5ca96528d
commit 2f40d9b07b
3 changed files with 282 additions and 51 deletions

View File

@@ -53,3 +53,17 @@ jobs:
process.exit(1);
}
'
- name: "Revert ember upgrade"
run: |
script/switch_ember_version 3
- name: "Ensure no diff"
run: |
if [ ! -z "$(git status --porcelain)" ]; then
echo "Working directory was not clean after upgrading/downgrading ember. Perhaps a lockfile is out-of-date. Run this command to re-sync:"
echo " script/regen_ember_5_lockfile"
echo
echo "Current diff:"
echo "---------------------------------------------"
git -c color.ui=always diff
exit 1
fi