amondnet / amondnet/vercel-action

loop

オープン
#233 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
765
フォーク
116
PR マージ指標
30日以内にマージされた PR はありません

説明

I was looking for the yml file. i noticed a problem.
even though it goes to error the deployment continues indefinitely.
i tried several times.

i guess i set something wrong, but instead of freezing is telling me what went wrong, it continues endlessly.
![image](https://github.com/amondnet/vercel-action/assets/67595890/d6ccd59e-4814-4967-8ca9-74672fe35110)

```yml
name: Vercel CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [19.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install and ci and build
env:
REACT_APP_API_KEY_CROWDIN: ${{ secrets.API_KEY_CROWDIN }}
REACT_APP_API_KEY_GITHUB: ${{ secrets.API_KEY_GITHUB }}
run: |
npm install
npm ci
npm run build
mv out build
- name: Archive Build
uses: actions/upload-artifact@v3
with:
name: build
path: build

# https://github.com/marketplace/actions/vercel-action
# https://github.com/vercel/vercel/discussions/4367#discussioncomment-1672222
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Build
uses: actions/download-artifact@v3
with:
name: build
path: build
- uses: amondnet/vercel-action@v25 #deploy
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
# vercel-args: '--prod' #Optional
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required
working-directory: build

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。