Skip to content

add: Examples Docs

add: Examples Docs #11

Workflow file for this run

name: CI
on:
pull_request:
branches: ["*"]
push:
branches: ["main"]
jobs:
lint:
runs-on: ubuntu-latest
name: linting
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
id: install-pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.1
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Get Pnpm Store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Pnpm cache
uses: actions/cache@v4
with:
path: ${{steps.pnpm-cache.outputs.pnpm_cache_dir}}
key: ${{runner.os}}-pnpm-cache-${{hashFiles('**/pnpm-lock.yaml')}}
restore-keys: |
${{runner.os}}-pnpm-cache-
- name: Install Package Depenedency
run: pnpm install --frozen-lockfile
- name: Run Lint
run: pnpm lint
build:
runs-on: ubuntu-latest
needs: lint
name: building
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
version: 9.15.1
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install Dependenices
run: pnpm install --frozen-lockfile
- name: Build Project
run: pnpm build