Skip to content

Merge pull request #20 from ineka-dev/changeset-release/main #38

Merge pull request #20 from ineka-dev/changeset-release/main

Merge pull request #20 from ineka-dev/changeset-release/main #38

Workflow file for this run

name: Documentation generation
on:
push:
branches:
- main
jobs:
build-and-test:
name: Build and lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
build-docs:
name: Build and deploy documentation
runs-on: ubuntu-latest
needs: [build-and-test]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Generate documentation
run: pnpm docs:generate
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs
deploy-docs:
needs: build-docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4