update workflow #1
Workflow file for this run
This file contains 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: Preview Deploy | |
on: | |
push: | |
branches-ignore: | |
- main | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install Vercel CLI | |
run: npm install --global vercel@latest | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Run build | |
run: bun run build | |
- name: Typcheck | |
run: bun run check | |
- name: Deploy to Vercel | |
working-directory: ./www | |
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |