Skip to content

Basic GitHub Actions Workflow (#6) #1

Basic GitHub Actions Workflow (#6)

Basic GitHub Actions Workflow (#6) #1

Workflow file for this run

name: Lint & Build
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: './pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install
- name: Run lint script
run: pnpm lint
- name: Run build script
run: pnpm build