DEV Community

Discussion on: Nextjs CI/CD on Vercel with Github actions

Collapse
 
aravin profile image
Aravind A

I tried your steps and getting this error

Run amondnet/vercel-action@v20.0.1
/home/runner/work/_actions/amondnet/vercel-action/v20.0.1/dist/index.js:6944
        throw new Error(`Input required and not supplied: ${name}`);
        ^

Error: Input required and not supplied: vercel-token
    at Object.getInput (/home/runner/work/_actions/amondnet/vercel-action/v20.0.1/dist/index.js:6944:15)
    at Object.104 (/home/runner/work/_actions/amondnet/vercel-action/v20.0.1/dist/index.js:1139:26)
    at __webpack_require__ (/home/runner/work/_actions/amondnet/vercel-action/v20.0.1/dist/index.js:22:30)
    at startup (/home/runner/work/_actions/amondnet/vercel-action/v20.0.1/dist/index.js:37:19)
    at /home/runner/work/_actions/amondnet/vercel-action/v20.0.1/dist/index.js:41:18
    at Object.<anonymous> (/home/runner/work/_actions/amondnet/vercel-action/v20.0.1/dist/index.js:44:10)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
Enter fullscreen mode Exit fullscreen mode
Collapse
 
devhaitham481 profile image
devHaitham481 • Edited

make sure to add your vercel_token, project_id and org_id in the actions secret of github not dependabot secrets. worked with me :thumbsup

Collapse
 
aravin profile image
Aravind A

Made sure.