build(deps): bump the production-dependencies group across 1 directory with 4 updates #73
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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: "Deployment" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| permissions: | |
| contents: read | |
| deployments: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: "yarn" | |
| - name: Restore Yarn Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: yarn-modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev | |
| restore-keys: | | |
| yarn-modules-${{ runner.arch }}-${{ runner.os }}- | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Build website | |
| run: yarn build | |
| env: | |
| VITE_RUN_ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }} | |
| - name: Deploy to Cloudflare | |
| uses: acm-uiuc/actions/.github/actions/cloudflare-pages-deploy@main | |
| with: | |
| build-directory: build/ | |
| project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }} | |
| account-id: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | |
| pages-api-token: ${{ secrets.PAGES_API_TOKEN }} |