Skip to content

Commit

Permalink
fix(repo): update .releaserc to commit package.json version back
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed May 1, 2021
1 parent 0f9fda7 commit 36d2f30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
{ type: 'refactor', hidden: true },
{ type: 'test', hidden: true },
{ type: 'release', hidden: true },
{ scope: 'repo', hidden: true },
],
},
},
Expand All @@ -35,9 +36,9 @@ module.exports = {
[
'@semantic-release/exec',
{
prepareCmd: 'npx ts-node toools/scripts/patch-package-versions ${nextRelease.version}',
publishCmd: [
'npx ts-node tools/scripts/publish-all ${nextRelease.version} ${nextRelease.channel}',
'git status',
].join(' && '),
},
],
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/patch-package-versions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ export function PatchPackageVersions(newVersion: string, updateGit = true) {
}

if (require.main === module) {
PatchPackageVersions(process.argv[2]);
PatchPackageVersions(process.argv[2], false);
}

0 comments on commit 36d2f30

Please sign in to comment.