netlify site: https://overnext.netlify.app/
github repo: GitHub - einSelbst/overnext: explore setup options
My problem is, that netlify sometimes uses an outdated version of GitHub - cypress-io/netlify-plugin-cypress: Runs Cypress end-to-end tests after Netlify builds the site but before it is deployed.
I have a strange mismatch between preview branch builds and the main branch build.
For preview branches plugins are loaded and installed like this:
However, on the main branch I’m not able to get the latest plugin version of netlify-plugin-cypress
, it always uses 1.9.2, which then results in other issues
→ Sorry, new users can only put one embedded media item in a post.
What I tried:
-
rebuilding with clean cache
-
removing cypress build cache env var from
netlify.toml
-
not using
netlify-nextjs-cache
plugin -
adding a
npm install
step beforebuild
-
the
netlify-plugin-cypress
needs to be added topackage.json
anyway per instructions so the info in this older, almost similar issue where it was said that adding the plugin to package.json would force a specific version doesn’t seem to help in my case
Netlify doesn't use the latest version of a plugin - #4 by devs
This is a link to a build where an outdated cypress plugin is used. The issue why it fails to deploy is something else, basically the older version of the plugin runs the tests ‘afterBuild’ instead of 'onSuccessful deployment`
Here is a preview build which is as it should be:
You can also see that in preview it recognizes:
- netlify-plugin-cypress@2.1.0 from netlify.toml and package.json
while on main / production it only:
- netlify-plugin-cypress@1.9.2 from netlify.toml
It’s also very different regarding which plugins are ‘installed’ before the plugin loading.
I reallly dont understand why it works on preview deploys but not on production.
Looking forward to any idea how to upgrade netlify-plugin-cypress