Skip to content

Commit

Permalink
test(ci): add build workflow to catch build errors in CI (#469)
Browse files Browse the repository at this point in the history
* test(ci): add build workflow to catch build errors in CI

* fix(build): add type modules to package.json to resolve ESM error
  • Loading branch information
MSevey authored Sep 27, 2024
1 parent f8bc44c commit d535b60
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
},
"dependencies": {
"node-fetch": "^3.3.2"
}
},
"type": "module"
}

0 comments on commit d535b60

Please sign in to comment.