mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
14
.github/workflows/ember-version-enforcement.yml
vendored
14
.github/workflows/ember-version-enforcement.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user