🐎 ci: VERCEL_TOKEN 尝试能否读取; #7
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
# 参考资料 | |
# 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 |