diff --git a/scripts/release.js b/scripts/release.js index 4e99cf7..0f71a82 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -16,12 +16,11 @@ if (!commitMessage) { console.log('Commit message wasn\'t passed down.'); process.exit(1); } - -execSync('yarn build', { encoding: 'utf-8' }); - const versionUpdate = versionUpdateType(commitMessage); const NEW_VERSION = execSync(`npm version ${versionUpdate} --force`, { encoding: 'utf-8' }); +execSync('yarn build', { encoding: 'utf-8' }); + console.log(`Releasing package cypress-fs@${NEW_VERSION}`); execSync('cd dist && npm publish --access public --registry https://registry.npmjs.org/');