Skip to content

Commit

Permalink
Exit script early if no dependencies were updated in upgrade-deps script
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 5, 2024
1 parent 19eed43 commit 587c072
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/upgrade-deps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ const branch = `deps/${new Date().toISOString().replace(/[^0-9]/g, "-")}`

await $`npx --yes ncu -u --deep ${autos.join(" ")}`
await $`yarn install:force`

const status = await $`git status --porcelain`
if (!status.stdout.trim()) {
console.log("No changes, exiting")
process.exit(0)
}

await $`yarn typecheck`
await $`yarn compile`
await $`git checkout -b ${branch}`
Expand Down

0 comments on commit 587c072

Please sign in to comment.