From fd1532aec598bb634463ce717208de8d22df80e1 Mon Sep 17 00:00:00 2001 From: Matthew Sevey <15232757+MSevey@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:06:45 -0400 Subject: [PATCH 1/3] test(ci): add build workflow to catch build errors in CI --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..450ceabdb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build VitePress Site + +on: + push: + branches: [main] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: yarn # or pnpm / npm + - name: Install dependencies + run: yarn install # or pnpm install / npm ci + - name: Build with VitePress + run: yarn docs:build # or pnpm docs:build / npm docs:build From 40b4bbccb014d301051b21a17170ca401b1b6609 Mon Sep 17 00:00:00 2001 From: Matthew Sevey <15232757+MSevey@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:16:19 -0400 Subject: [PATCH 2/3] fix(build): add type modules to package.json to resolve ESM error --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d055da21f..473074d26 100644 --- a/package.json +++ b/package.json @@ -13,5 +13,6 @@ }, "dependencies": { "node-fetch": "^3.3.2" - } + }, + "type": "module" } From f258f9e5e7602e5ecb269afb139f61098a11c5b0 Mon Sep 17 00:00:00 2001 From: Matthew Sevey <15232757+MSevey@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:19:47 -0400 Subject: [PATCH 3/3] chore: add deploy action status to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 75d7dfb94..96c418a75 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Deploy](https://github.com/rollkit/docs/actions/workflows/deploy.yml/badge.svg)](https://github.com/rollkit/docs/actions/workflows/deploy.yml) + # Rollkit Documentation Site Welcome to the official documentation repository for Rollkit.