-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 944 Bytes
/
monorepo-1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 参考资料
# https://github.com/marketplace/actions/vercel-action
# https://vercel.com/guides/how-can-i-use-github-actions-with-vercel
name: monorepo-1
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# https://aaronfrancis.com/2021/the-perfect-vercel-github-actions-deployment-pipeline
- name: Setup Node 20
uses: actions/setup-node@v2
with:
node-version: '20'
- uses: actions/checkout@main
- uses: amondnet/vercel-action@v25.1.1
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: ./packages/monorepo-1
alias-domains: monorepo-1.ruancat6312.top