The addition of npm install to the build slows it down significantly.
By caching the npm packages, we can speed up the build.
See https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows on guidance for implementation.