Skip to content

feat: Update configuration and workflows for improved build and deplo… #1

feat: Update configuration and workflows for improved build and deplo…

feat: Update configuration and workflows for improved build and deplo… #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Prevent race conditions by cancelling in-progress runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI Pipeline
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run lint, type check, and format check
run: |
bun run lint
bun run type-check
bun run format:check
- name: Build project
run: bun run build
- name: Upload build artifacts
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: './dist'