diff --git a/bun.lockb b/bun.lockb index a6d95c558..7cd3c73b9 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/scripts/bun-update-lock.ts b/scripts/bun-update-lock.ts index 755cc5a01..cf4302053 100644 --- a/scripts/bun-update-lock.ts +++ b/scripts/bun-update-lock.ts @@ -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 "bun-bot@raulmelo.me"`; -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 "bun-bot@raulmelo.me"`; + 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( value: T | undefined | null, diff --git a/website/package.json b/website/package.json index 487362394..5921e7017 100644 --- a/website/package.json +++ b/website/package.json @@ -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",