chore(deps): update dependency wrangler to v4.127.1 #1918
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 | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| paths: | |
| - '.github/workflows/deploy.yml' | |
| - '.node-version' | |
| - 'next.config.ts' | |
| - 'package-lock.json' | |
| - 'package.json' | |
| - 'postcss.config.mjs' | |
| - 'public/**' | |
| - 'scripts/**' | |
| - 'src/**' | |
| - 'tsconfig.json' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/deploy.yml' | |
| - '.node-version' | |
| - 'next.config.ts' | |
| - 'package-lock.json' | |
| - 'package.json' | |
| - 'postcss.config.mjs' | |
| - 'public/**' | |
| - 'scripts/**' | |
| - 'src/**' | |
| - 'tsconfig.json' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| env: | |
| DIST_DIR: out | |
| DIST_PATH: out | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: .node-version | |
| - id: npm-cache-dir | |
| shell: bash | |
| run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
| - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 | |
| with: | |
| path: ${{ steps.npm-cache-dir.outputs.dir }} | |
| key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm- | |
| - run: npm ci | |
| - run: npm run build | |
| env: | |
| NEXT_PUBLIC_API_ORIGIN: ${{ vars.API_ORIGIN }} | |
| NEXT_PUBLIC_APP_ORIGIN: ${{ vars.APP_ORIGIN }} | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| include-hidden-files: true | |
| name: ${{ env.DIST_DIR }} | |
| path: ${{ env.DIST_PATH }} | |
| if-no-files-found: error | |
| deploy: | |
| permissions: | |
| pull-requests: write | |
| needs: build | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| # Install npm packages in the deploy job as well to ensure the wrangler CLI version | |
| # used in subsequent steps is locked via the lock file | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: .node-version | |
| - id: npm-cache-dir | |
| shell: bash | |
| run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
| - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 | |
| with: | |
| path: ${{ steps.npm-cache-dir.outputs.dir }} | |
| key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm- | |
| - run: npm ci | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: ${{ env.DIST_DIR }} | |
| path: ${{ env.DIST_PATH }} | |
| - uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0 | |
| id: deploy | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy --branch=${{ github.ref_name }} --commit-dirty=true | |
| wranglerVersion: ${{ env.WRANGLER_VERSION }} | |
| env: | |
| WRANGLER_VERSION: 4.127.0 | |
| - uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 | |
| if: ${{ success() && github.event_name == 'pull_request' }} | |
| with: | |
| message: | | |
| Preview Deployment Successfully ✅ ${{ steps.deploy.outputs.deployment-url }} | |
| comment-tag: cloudflare-pages-deployment |