amondnet / vercel-action

This action make a deployment with github actions instead of Vercel builder.
https://vercel.com/docs/cli
MIT License
619 stars 95 forks source link

error when run action #253

Open mitraecp opened 4 months ago

mitraecp commented 4 months ago

image

anyone can help me?

i got this error when try run action

this is my yaml file

name: deploy
on:
  pull_request:
    branches:
      - qa
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout Repository
      uses: actions/checkout@v2

    - name: Setup Node.js
      uses: actions/setup-node@v2
      with:
        node-version: '10.x'

    - name: Install Dependencies
      run: npm install

    - name: Build for Production
      run: npm run prod-build
    - uses: amondnet/vercel-action@v20 
      with:
        vercel-token: ${{ secrets.VERCEL_TOKEN }} 
        github-token: ${{ secrets.GITHUB_TOKEN }} 
        vercel-org-id: ${{ secrets.ORG_ID}}  
        vercel-project-id: ${{ secrets.PROJECT_ID}} 
        working-directory: ./sub-directory
vickkhera commented 4 months ago

Try using amondnet/vercel-action@v25 so you get a newer version of node. This will also eventually stop working because Vercel is deprecating node 16 and there's no newer version of this action yet. See #249