feat: update publish workflows to use Setup Dart action #221
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/site.yaml" | |
- "site/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: site | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v4 | |
- name: ⚙️ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: npm | |
cache-dependency-path: site/package-lock.json | |
- name: 📦 Install Dependencies | |
run: npm ci | |
- name: ✨ Check Format | |
run: npm run format:check | |
- name: 🧹 Lint | |
run: npm run lint | |
- name: 👷 Build website | |
run: npm run build |