chore: release v3.2.1 #32
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: Deploy Demo to Cloudflare Pages | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'projects/demo-ngx-theme-stack/**' | |
| - 'projects/ngx-theme-stack/**' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| - '.github/workflows/deploy.yml' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'projects/demo-ngx-theme-stack/**' | |
| - 'projects/ngx-theme-stack/**' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| - '.github/workflows/deploy.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.30.3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build library and schematics | |
| run: pnpm run build:lib | |
| - name: Build demo application | |
| run: pnpm run build:demo | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy dist/demo-ngx-theme-stack/browser --project-name=demo-ngx-theme-stack |