Skip to content

Commit

Permalink
chore: added vercel CI build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Peng-YM authored Jan 13, 2024
1 parent 035a967 commit c01a2f6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy-vercel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to Vercel
on:
push:
branches:
- master
paths:
- "package.json"
pull_request:
branches:
- master
paths:
- "package.json"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install dependencies
run: |
npm install -g pnpm
pnpm i
- name: build
run: |
pnpm build
- uses: amondnet/vercel-action@v20 #deploy
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
# github-token: ${{ secrets.GITHUB_TOKEN }} # Optional
# vercel-args: '--prod' # Optional
vercel-org-id: ${{ secrets.ORG_ID}} # Required
vercel-project-id: ${{ secrets.PROJECT_ID}} # Required
working-directory: dist

0 comments on commit c01a2f6

Please sign in to comment.