diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index f7af71aab..ddd5b8582 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -19,7 +19,7 @@ jobs: run: bun install - name: Build - run: rm -rf sern-handler && git clone https://github.com/sern-handler/handler sern-handler && cd sern-handler && bun install && cd .. && bun run build + run: bun run build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 diff --git a/bun.lockb b/bun.lockb index f10fa68c7..260660de8 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/netlify.toml b/netlify.toml index 2862167d4..0709690b1 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] publish = "dist" -command = "rm -rf sern-handler && git clone https://github.com/sern-handler/handler sern-handler && cd sern-handler && bun install && cd .. && bun run build" \ No newline at end of file +command = "bun run build" \ No newline at end of file diff --git a/package.json b/package.json index 47f09440c..13fa21b00 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "start": "astro dev", "build": "astro check && astro build", "preview": "astro preview", - "astro": "astro" + "astro": "astro", + "postinstall": "bun run setup.mjs" }, "dependencies": { "@astrojs/check": "^0.5.10", diff --git a/setup.mjs b/setup.mjs new file mode 100644 index 000000000..fc3aca826 --- /dev/null +++ b/setup.mjs @@ -0,0 +1,3 @@ +import { $ } from "bun"; + +await $`rm -rf sern-handler && git clone https://github.com/sern-handler/handler sern-handler && cd sern-handler && bun install`; \ No newline at end of file