chore(deps): Bump the all-deps group with 6 updates #203
Workflow file for this run
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: Preview | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| branches: [main] | |
| concurrency: | |
| group: preview-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy_preview: | |
| if: github.event.action != 'closed' | |
| name: Deploy Preview | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write # SWA deploy posts preview URL comment | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build web app (preview) | |
| run: pnpm nx build web-app --configuration preview | |
| - name: Copy SWA routing config | |
| run: cp apps/web-app/src/staticwebapp.config.json dist/apps/web-app/browser/ | |
| - name: Deploy to Azure Static Web Apps | |
| id: deploy | |
| uses: Azure/static-web-apps-deploy@v1 | |
| with: | |
| azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| action: upload | |
| app_location: dist/apps/web-app/browser | |
| skip_app_build: true | |
| skip_deploy_on_missing_secrets: true | |
| close_preview: | |
| if: github.event.action == 'closed' | |
| name: Close Preview | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write # SWA close action updates PR status | |
| steps: | |
| - name: Close staging environment | |
| uses: Azure/static-web-apps-deploy@v1 | |
| with: | |
| azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} | |
| action: close |