chore: release v3.3.0 #62
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| # ── 1. Detección de Cambios ──────────────────────────────────────────────── | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| lib: ${{ steps.filter.outputs.lib }} | |
| demo: ${{ steps.filter.outputs.demo }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| lib: | |
| - 'projects/ngx-theme-stack/**' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| demo: | |
| - 'projects/demo-ngx-theme-stack/**' | |
| - 'projects/ngx-theme-stack/**' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| # ── 2. Job para la Librería ──────────────────────────────────────────────── | |
| library: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.lib == 'true' }} | |
| name: Test & Build Library | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.30.3 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run Linter | |
| run: pnpm exec ng lint ngx-theme-stack | |
| - name: Run Unit Tests | |
| run: pnpm exec ng test ngx-theme-stack --watch=false | |
| - name: Build Library | |
| run: pnpm exec ng build ngx-theme-stack | |
| # ── 3. Job para la Demo ─────────────────────────────────────────────────── | |
| demo: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.demo == 'true' }} | |
| name: Build Demo App | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.30.3 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build Library (required for schematics) | |
| run: pnpm run build:lib | |
| - name: Build Demo | |
| run: pnpm run build:demo |