chore(deps): Update npm dependencies #2307
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint CI | |
| # トリガー条件: pushされたとき (python周りのファイルとドキュメントを除く) | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'apps/python-audio-analyzer/**' | |
| - '.github/workflows/python-lint.yml' | |
| - '**/*.md' | |
| - 'docs/**' | |
| pull_request: | |
| paths-ignore: | |
| - 'apps/python-audio-analyzer/**' | |
| - '.github/workflows/python-lint.yml' | |
| - '**/*.md' | |
| - 'docs/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # 複数の Node.js バージョンで並走実行 | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| # 1. リポジトリをチェックアウト | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| # 2. Node.js をセットアップ | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| # 3. npm キャッシュの復元 (ビルド高速化) | |
| - name: Restore npm cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/npm | |
| key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm- | |
| # 4. 依存パッケージのインストール | |
| - name: Install dependencies | |
| run: npm ci | |
| # 5. Biome (Lint + import 整理 + フォーマット検出)を実行 | |
| - name: Run Biome | |
| run: npm run lint | |
| # 6. TS の型チェックを実行 | |
| - name: Run tsc | |
| run: npm run type-check | |
| # 7. shared-types から Python 型が生成できることを検証 | |
| - name: Verify Python types generation | |
| run: | | |
| npm run build -w @sonory/shared-types | |
| npm run verify -w @sonory/python-types | |
| # 8. OpenAPI Spec と生成型の整合性を検証 | |
| - name: Verify generated OpenAPI types | |
| run: npm run check:generated --workspace=@sonory/shared-types |