Skip to content

Commit

Permalink
Release script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Dec 3, 2023
1 parent 783dfb9 commit d11a98f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,8 @@ const hasStep = (step) => {
}

if (hasStep('tag') && !isDryRun) {
// push the version commit & tag to upstream
// conditionally skip prepush test hook if we already ran the test step earlier
const withTests = hasStep('test') ? '--no-verify' : '';
execSync(`git push upstream --follow-tags ${withTests}`, execOptions);
// push the version commit & tag to upstream, skipping prepush test hook
execSync(`git push upstream --follow-tags --no-verify`, execOptions);
}

if (hasStep('publish') && !isDryRun) {
Expand Down Expand Up @@ -208,7 +206,7 @@ async function ensureCorrectSetup() {
/**
* Ensure latest has been pulled and dependencies are up to date
*/
execSync('git pull');
if (!isSpecialRelease) execSync('git pull');
execSync('yarn');
}

Expand Down

0 comments on commit d11a98f

Please sign in to comment.