mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
publish-prereleases: Exit if CircleCI request fails (#26100)
If the publish-prereleases command fails to access CircleCI, it will now exit with a message instead of hanging indefinitely.
This commit is contained in:
@@ -99,6 +99,15 @@ async function main() {
|
||||
}
|
||||
);
|
||||
|
||||
if (!pipelineResponse.ok) {
|
||||
console.error(
|
||||
theme.error(
|
||||
`Failed to access CircleCI. Responded with status: ${pipelineResponse.status}`
|
||||
)
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const pipelineJSON = await pipelineResponse.json();
|
||||
const pipelineID = pipelineJSON.id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user