Skip to content

Commit

Permalink
Fix automatic updating
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurankv committed Aug 15, 2023
1 parent 1852ad3 commit 739e29b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions version-bump.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ process.env.release_notes = /(?<=## \[Unreleased\])[\s\S]*?\n(?=## )/.exec(chang
writeFileSync("CHANGELOG.md",changelog.replace(/## \[Unreleased\]/,`## [Unreleased]\n\n## [${newVersion}] - ${new Date().toISOString().slice(0, 10)}`).replace(/(?<=\[Unreleased\]: \/..\/..\/compare\/)(\d+.\d+.\d+)...HEAD/,`${newVersion}...HEAD\n[${newVersion}]: /../../compare/${lastVersion}...${newVersion}`));

// Push to origin
exec(`git tag -a $npm_package_version -F- <<EOF && git push origin $npm_package_version
exec(`git tag -a $npm_package_version -F- <<EOF && git push origin $npm_package_version && git push origin $npm_package_version
$release_notes
EOF`,(error)=>console.log(error));
exec("git push origin $npm_package_version",(error)=>console.log(error));

0 comments on commit 739e29b

Please sign in to comment.