feat: 文件支持设置 查询流量信息订阅链接. 服务器版中使用此链接可在响应中传递订阅流量信息 #192
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: 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: "20" | |
- name: Install dependencies | |
run: | | |
npm install -g pnpm | |
pnpm i --no-frozen-lockfile | |
- 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 |