Updating swift on server?

Hi,
I just updated a dependency in my project and now have an issue with the swift version. The dependency “is using Swift tools version 5.4.0 but the installed version is 5.2.0”. How would I go about updating swift on the server?

Thanks

This page of documentation would help you: Manage build dependencies | Netlify Docs

Basically, you can set an environment variable with the required version.