diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fb76060ea..5e8371dbe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ This is the log of notable changes to EAS CLI and related packages. ### ๐Ÿ› Bug fixes +- Disallow republishing an update that is being rolled-out. ([#2602](https://github.com/expo/eas-cli/pull/2602) by [@wschurman](https://github.com/wschurman)) + ### ๐Ÿงน Chores - Implement new `worker` deploy API flow. ([#2601](https://github.com/expo/eas-cli/pull/2601) by [@kitten](https://github.com/kitten))) diff --git a/packages/eas-cli/src/update/republish.ts b/packages/eas-cli/src/update/republish.ts index 2009380ace..2f5c9f496c 100644 --- a/packages/eas-cli/src/update/republish.ts +++ b/packages/eas-cli/src/update/republish.ts @@ -69,6 +69,11 @@ export async function republishAsync({ 'All updates must either be roll back to embedded updates or not' ); + assert( + !updatesToPublish.some(u => !!u.rolloutControlUpdate), + 'Cannot republish an update that is being rolled-out. Either complete the update rollout and then republish or publish a new rollout update.' + ); + const { runtimeVersion } = arbitraryUpdate; // If codesigning was created for the original update, we need to add it to the republish.