What you’ll learn
  • how to upgrade Webiny from 5.39.x to 5.40.1

Make sure to check out the 5.40.1 changelog to get familiar with the changes introduced in this release.

Step-by-Step Guide
anchor

1. Upgrade Webiny Packages
anchor

Upgrade all Webiny NPM packages by running the following command:

Once the upgrade has finished, running the yarn webiny --version command in your terminal should return 5.40.1.

2. Run the Upgrade Command (If Upgrading From 5.39.x)
anchor

In case you are upgrading to 5.40.1 from 5.39.x, you must upgrade your project. Depending on your project, you might also need to perform a couple of manual steps.

Before proceeding with the next step, make sure to check the 2. Run the Upgrade Command section of the Upgrade From 5.39.x to 5.40.0 upgrade guide.

3. Deploy Your Project
anchor

Proceed by redeploying your Webiny project:

Make sure you deploy the entire system using the command shown above! You have to deploy all apps before using the system. Partial deploys will cause the upgrade to be applied incorrectly.
As stated in the Upgrade Webiny section, we recommend that you first deploy your changes into one of your pre-production environments, like dev or staging.
Learn more about different deployment environments in the CI/CD / Environments key topic.