We capture any updated build outputs in git in the course of the version step by staging the dist folder…