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

There was an error when attempting to execute the process #16

Closed
morganfeeney opened this issue Jun 30, 2020 · 1 comment
Closed

There was an error when attempting to execute the process #16

morganfeeney opened this issue Jun 30, 2020 · 1 comment

Comments

@morganfeeney
Copy link

Hi, I'm attempting to use vercel-action but keep running into issues.

I have followed the documentation here: https://github.com/marketplace/actions/vercel-action

The latest error is this one:
image

Here's my .yml file for github actions:

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest

    env:
      CI: true
      ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
      SPACE_ID: ${{ secrets.SPACE_ID }}
    strategy:
      matrix:
        node-version: [10.x, 12.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: Install, build, and test
      run: |
        npm ci
        npm run build --if-present
        npm run test:unit

    - name: Vercel Action
      uses: amondnet/vercel-action@v19.0.1+1
      with:
        vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
        vercel-args: '--prod' #Optional
        vercel-org-id: ${{ secrets.ORG_ID}}  #Required
        vercel-project-id: ${{ secrets.PROJECT_ID}} #Required

I'm kind of new to this, but what I'm attempting to do here is have an action run through building and testing the app, then I'd like to deploy to vercel, once tests have passed.

@morganfeeney
Copy link
Author

I just read the error after posting and voila, it now deploys! I must have gone over this several times previously and overlooked the latest error.

However I now have the deployment deploying the wrong code, I'll raise a separate issue.

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

1 participant