Skip to content

Update deploy.yml

Update deploy.yml #17

Workflow file for this run

name: Vercel Deploy
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [master]
pull_request:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
statuses: write
pull-requests: write
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
- uses: nexterias/actions-vercel@v1
with:
token: ${{ secrets.VERCEL_TOKEN }}
org-id: ${{ vars.VERCEL_ORG_ID }}
project-id: ${{ vars.VERCEL_PROJECT_ID }}
production: ${{ github.ref == 'refs/heads/master' }}
# prebuilt: true # If set to true, build will be performed using GitHub Actions.