Skip to content

docs: add bundler setup section #368

docs: add bundler setup section

docs: add bundler setup section #368

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run lint
- run: npm run format:check # Assuming you have a format checking script
- run: npm run type-check # Assuming you have a type checking script
- run: npm test
- name: Audit dependencies
run: npm audit --audit-level=moderate
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/
- name: Build package
run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/