fix(build): perform build steps in correct order