-
Notifications
You must be signed in to change notification settings - Fork 40
Upgrade to latest Netlify build API #18
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
Conversation
|
Looks good, let me try this tomorrow before publishing. I think this does not even have user-facing changes, so could be even a patch version update. |
|
actually, steps were renamed, so user would have to use |
|
Oh yes, you're right. You could either make a breaking change and support only passing the new event name, or keep backward compatibility there. Please let me know if you have any additional questions, I'm here to help! :) |
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.
Looks good, I will merge this so I release a beta version to test it out, then will set up CI tests before publishing an official version, thanks for the work @ehmicky I really appreciate this
|
@ehmicky do the users still need to specify inputs to |
|
also @ehmicky I have noticed the pre-build callback failing, yet the build has succeeded? https://circleci.com/gh/cypress-io/netlify-plugin-cypress/96 |
- this is a fix because under the hood it updates this plugin to latest built API (work was done in PR #18)
|
🎉 This PR is included in version 1.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I kept it as
This PR switched from using |

Thanks a lot for creating this Build plugin!
Netlify just released the latest version of Build plugins. Build plugins are currently enabled in the Netlify website for a small percentage of beta users.
This PR upgrades this plugin to the latest API. You can find the new documentation here.
I don't have a Cypress setup, so you definitely would want to manually test the different changes introduced by this PR.
List of the changes:
keywordstopackage.jsonto make it easier for users to find your pluginbugskeyword topackage.jsonwhich will be printed to users if a bug happens inside your pluginexecawith Netlify'srunutility, which is based on Execa (note: I am a co-maintainer of Execa)wait-onfail, useutils.build.failPlugin()(which will be reported as a user error) instead of throwing an error (which would be reported as a bug inside your plugin)utils.build.failPlugin()instead ofutils.build.failBuild()to ensure other plugins keep running.nameproperty, which has been removed from NetlifypreBuildandpostBuildevents have been renamed toonPreBuildandonPostBuildPUBLISH_DIRconstant instead ofnetlifyConfig.build.publish. This constant not only uses the configuration file propertybuild.publishbut also the setting "Publish directory" set in the Netlify app.pluginConfigwas renamed toinputsNote: checking that
utils.buildexists should not be needed in production. The only way this would not exist is for users running a local build with an old version Netlify CLI, but upgrading should fix their problem.Those are quite many changes, so if you find any time to confirm that each works by running actual builds, this would be amazing! Thanks. 🙏