mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-02-18 06:09:24 -06:00
* feat: start reworking snippets * feat: start cleaning up gen script * fix: start updating refs everywhere * feat: start fixing broken snippet links * fix: more snippets * fix: more updates * chore: lint * fix: taskfile * fix: script * fix: escaping issue + mergent blog * fix: bunch more * chore: lint * fix: implement more of them * fix: retry * fix: the rest * chore: lint * fix: highlight * fix: ugh * fix: start removing dead code from old snippet method * fix: rest of the refs * fix: remove all of the rest of the <GithubSnippet uses * fix: couple more * fix: last few errors * fix: handle example writes * fix: delete to test update * fix: CI, attempt 1 * feat: helpful error on no snippet * fix: lint * chore: rm unused js file * feat: improve GHA * debug: run action on branch * fix: rm pnpm * fix: try to leave comment instead * fix: don't run on branch * fix: factor out GH info * fix: include code path * fix: ts
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
name: "frontend / docs"
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'frontend/docs/**'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v5
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9.15.4
|
|
run_install: false
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: pnpm
|
|
cache-dependency-path: frontend/docs/pnpm-lock.yaml
|
|
- name: Install dependencies
|
|
working-directory: frontend/docs
|
|
run: pnpm install --frozen-lockfile
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.13'
|
|
- name: Generate snippets
|
|
working-directory: frontend/snippets
|
|
run: python3 generate.py
|
|
- name: Lint
|
|
working-directory: frontend/docs
|
|
run: npm run lint:check
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v5
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9.15.4
|
|
run_install: false
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: pnpm
|
|
cache-dependency-path: frontend/docs/pnpm-lock.yaml
|
|
- name: Install dependencies
|
|
working-directory: frontend/docs
|
|
run: pnpm install --frozen-lockfile
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.13'
|
|
- name: Generate snippets
|
|
working-directory: frontend/snippets
|
|
run: python3 generate.py
|
|
- name: Build
|
|
working-directory: frontend/docs
|
|
run: npm run build
|