Skip to content

feat: static build support #33

feat: static build support

feat: static build support #33

Workflow file for this run

name: Lint and Format
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
container: node:18.16-bullseye
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: latest
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Lint check
run: pnpm lint:check
- name: Format with prettier
run: pnpm fmt:check