Skip to content

chore: rename .prettierrc to .prettierrc.json for syntax highlighting… #25

chore: rename .prettierrc to .prettierrc.json for syntax highlighting…

chore: rename .prettierrc to .prettierrc.json for syntax highlighting… #25

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 22
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Check formatting with Prettier
run: npm run prettier-check
type-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 22
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Check Astro types
run: npm run astro-check
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 22
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Build Astro site
run: npm run build