-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Pin Vercel CLI to 25.1.0 #171
Conversation
Deploy preview for vercel-action-example-nextjs ready! ✅ Preview Built with commit 1d26fa0. |
@amondnet sorry to bother you, do you know why the checks are failing here? |
The actions are running on Vercel CLI 27? Maybe this fix is not working... |
Kudos, SonarCloud Quality Gate passed! |
@@ -4,6 +4,8 @@ const github = require('@actions/github'); | |||
const { execSync } = require('child_process'); | |||
const exec = require('@actions/exec'); | |||
|
|||
const VERCEL_BIN = 'vercel@25.1.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to really close the feat request, can't you get this value from environment variables and default to 25.1.0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vitorbal
What about adding a vercel-version
input ?
https://github.com/amondnet/vercel-action/blob/master/action.yml
vercel-version:
description: 'Version Spec of the version to use..'
default: '25.1.0'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amondnet sounds good to me! Maybe we could default to @latest
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vitorbal I think @latest
can cause the same problem again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about if you just use a fix version for now and decide later, maybe the change worth it considering this is stopping the deploys for some users?
also, does this version tag is something to do with the version installed by the package.json from this action? because what would be the benefit of tagging with @25.1.0
if there's a different version installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding an argument to receive the version is a great idea, why did we ended up discarding this?
Closes #168