Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza-Bouhelal committed Oct 7, 2023
1 parent ee08891 commit f4957db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/');
Expand Down

0 comments on commit f4957db

Please sign in to comment.