Skip to content

chore(deps-dev): bump lint-staged from 16.1.5 to 16.2.6 #125

chore(deps-dev): bump lint-staged from 16.1.5 to 16.2.6

chore(deps-dev): bump lint-staged from 16.1.5 to 16.2.6 #125

Workflow file for this run

name: Build & Lint
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
env:
NODE_VERSION: '22'
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
lint-type: [js, css, types]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node and pnpm
uses: ./.github/actions/setup-node-pnpm
with:
node-version: ${{ env.NODE_VERSION }}
pnpm-version: 9.0.0
- name: Cache node_modules
id: node-modules-cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- name: Run JS/TS lint
if: matrix.lint-type == 'js'
run: pnpm lint
- name: Run CSS lint
if: matrix.lint-type == 'css'
run: pnpm lint:css
- name: Run type check
if: matrix.lint-type == 'types'
run: pnpm type-check
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node and pnpm
uses: ./.github/actions/setup-node-pnpm
with:
node-version: ${{ env.NODE_VERSION }}
pnpm-version: 9.0.0
- name: Cache node_modules
id: node-modules-cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- name: Run build
run: pnpm build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-files
path: dist/
retention-days: 7