rustlanges-components 0.1.0

RustLangES components library
Documentation
name: (JS) Quality

on:
  workflow_dispatch:
  push:
    branches:
      - main
    paths:
      - "js/**"
      - "package.json"
      - "pnpm-workspace.yaml"
  pull_request:
    paths:
      - "js/**"
      - "package.json"
      - "pnpm-workspace.yaml"

jobs:
  lint-format:
    name: Lint and Format Check
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install pnpm
        uses: pnpm/action-setup@v4
        with:
          version: 10

      - name: Install dependencies
        run: pnpm install

      - name: Build showcase
        run: pnpm build:showcase-lib

      - name: Run lint on all packages
        run: pnpm lint

      - name: Run format check on all packages
        run: pnpm fmt:check