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

Pin Vercel CLI to 25.1.0 #171

Merged
merged 3 commits into from
Jul 14, 2022
Merged

Pin Vercel CLI to 25.1.0 #171

merged 3 commits into from
Jul 14, 2022

Conversation

vitorbal
Copy link
Contributor

Closes #168

@github-actions
Copy link

github-actions bot commented Jul 12, 2022

Deploy preview for vercel-action-example-nextjs ready!

✅ Preview
https://vercel-action-example-nextjs-3y32d5mrc-amond.vercel.app
https://staging.nextjs.vercel-action.amond.dev
https://pr-171.nextjs.vercel-action.amond.dev

Built with commit 1d26fa0.
This pull request is being automatically deployed with vercel-action

@vitorbal
Copy link
Contributor Author

@amondnet sorry to bother you, do you know why the checks are failing here?

@felipe-chamas
Copy link

@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...

@sonarcloud
Copy link

sonarcloud bot commented Jul 13, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@@ -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';

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?

Copy link
Owner

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'

Copy link
Contributor Author

@vitorbal vitorbal Jul 14, 2022

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?

Copy link
Owner

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.

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?

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Work in Progress
Projects
None yet
5 participants