Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when run action #253

Open
mitraecp opened this issue Mar 12, 2024 · 2 comments
Open

error when run action #253

mitraecp opened this issue Mar 12, 2024 · 2 comments
Assignees

Comments

@mitraecp
Copy link

mitraecp commented Mar 12, 2024

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
Copy link

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

@amondnet amondnet self-assigned this Mar 22, 2024
@tonycastle
Copy link

I am getting this issue too using v25. Is it necessary to use the setup Node step? I am just using the example action from the readme. If there's a fix for this to just update to a newer node version can someone tell me what that should be? I guess if this is not maintained anymore I can just fork it and update that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants