Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

install and setup @astrojs/vercel #2

install and setup @astrojs/vercel

install and setup @astrojs/vercel #2

Workflow file for this run

name: CI/CD
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- "**.md"
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node 18.x
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
- name: Install packages
run: npm ci
- name: Typecheck
run: npm run check
- name: Pull Vercel Environment Information
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: npm run ci:setup-vercel
- name: Build
run: npm run build
- name: Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: npm run ci:deploy