Skip to content

chore(deps): bump the production-dependencies group with 12 updates #238

chore(deps): bump the production-dependencies group with 12 updates

chore(deps): bump the production-dependencies group with 12 updates #238

name: PR Preview Deploy
on:
pull_request:
branches:
- main
paths:
- .github/workflows/pr-preview-deploy.yml
- alchemy.run.ts
- apps/**
- infra/**
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- scripts/alchemy-*.ts
types:
- opened
- synchronize
- reopened
- closed
permissions:
contents: read
issues: write
pull-requests: write
concurrency:
group: pr-preview-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Deploy
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run quality gates
if: ${{ github.event.action != 'closed' }}
run: pnpm verify
- name: Deploy preview
if: ${{ github.event.action != 'closed' }}
run: pnpm run alchemy:deploy
env:
ALCHEMY_STAGE: pr-${{ github.event.pull_request.number }}
ALCHEMY_PASSWORD: ${{ secrets.ALCHEMY_PASSWORD }}
ALCHEMY_STATE_TOKEN: ${{ secrets.ALCHEMY_STATE_TOKEN }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
GITHUB_TOKEN: ${{ github.token }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
- name: Destroy preview
if: ${{ github.event.action == 'closed' }}
run: pnpm run alchemy:destroy
env:
ALCHEMY_STAGE: pr-${{ github.event.pull_request.number }}
ALCHEMY_PASSWORD: ${{ secrets.ALCHEMY_PASSWORD }}
ALCHEMY_STATE_TOKEN: ${{ secrets.ALCHEMY_STATE_TOKEN }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
GITHUB_TOKEN: ${{ github.token }}
PULL_REQUEST: ${{ github.event.pull_request.number }}