-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency bits-ui to v1.0.0-next.59 (#2798)
* Update dependency bits-ui to v1.0.0-next.59 * chore: update bun.lock * update script --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Bun Bot <[email protected]>
- Loading branch information
1 parent
e62016d
commit d0db6b2
Showing
3 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { $ } from 'bun'; | ||
|
||
// GITHUB_REF_NAME: e.g., renovate/bits-ui-1.x | ||
invariant(process.env.GITHUB_REF_NAME, 'GITHUB_REF_NAME is not defined'); | ||
|
||
|
@@ -9,14 +10,21 @@ if (!process.env.GITHUB_REF_NAME.includes('renovate')) { | |
|
||
await $`bun i`; | ||
|
||
await $`git config --global user.email "[email protected]"`; | ||
await $`git config --global user.name "Bun Bot"`; | ||
const gitStatus = await $`git status`; | ||
|
||
if (gitStatus.text().includes('modified: bun.lockb')) { | ||
await $`git config --global user.email "[email protected]"`; | ||
await $`git config --global user.name "Bun Bot"`; | ||
|
||
await $`git add bun.lockb`; | ||
await $`git add bun.lockb`; | ||
|
||
await $`git commit -m "chore: update bun.lock"`; | ||
await $`git commit -m "chore: update bun.lock"`; | ||
|
||
await $`git push origin HEAD`; | ||
await $`git push origin HEAD`; | ||
} else { | ||
console.log('bun.lockb is not modified'); | ||
process.exit(0); | ||
} | ||
|
||
function invariant<T>( | ||
value: T | undefined | null, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters