Skip to content

Commit

Permalink
Update dependency bits-ui to v1.0.0-next.59 (#2798)
Browse files Browse the repository at this point in the history
* 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
3 people authored Nov 18, 2024
1 parent e62016d commit d0db6b2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
18 changes: 13 additions & 5 deletions scripts/bun-update-lock.ts
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');

Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@sanity/image-url": "1.1.0",
"@xstate/svelte": "4.0.0",
"algoliasearch": "5.14.0",
"bits-ui": "1.0.0-next.58",
"bits-ui": "1.0.0-next.59",
"clsx": "2.1.1",
"flat": "6.0.1",
"groq": "3.64.1",
Expand Down

0 comments on commit d0db6b2

Please sign in to comment.