Skip to content

Commit 88bd2b2

Browse files
committed
update
1 parent 7bceb1e commit 88bd2b2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

packages/release/release.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,13 @@ const release = (shell, option, version) => {
3131
exec(shell, `yarn test`);
3232
exec(shell, `yarn build:release`);
3333
shell.echo("Creating release branch...");
34+
// update version
3435
exec(shell, `npm version ${version}`);
35-
exec(shell, "git add package.json");
36-
exec(shell, `git commit -m "update package v${version}"`);
37-
exec(shell, "git push origin main");
3836
exec(shell, `echo { "version": "${version}" }>version.json`);
3937
// creating changelog
4038
exec(shell, "yarn changelog");
4139
exec(shell, "git add CHANGELOG.md");
42-
exec(shell, `git commit -m "update changelog v${version}"`);
40+
exec(shell, `git commit -m "changelog v${version}"`);
4341
exec(shell, "git push origin main");
4442
// create release branch
4543
exec(shell, `git checkout -b refs/heads/v${version}:refs/heads/v${version}`);

packages/release/release.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,10 @@ test('--start option runs the correct commands', () => {
4545
"yarn test",
4646
"yarn build:release",
4747
"npm version 0.10.0",
48-
"git add package.json",
49-
"git commit -m \"update package v0.10.0\"",
50-
"git push origin main",
5148
"echo { \"version\": \"0.10.0\" }>version.json",
5249
"yarn changelog",
5350
"git add CHANGELOG.md",
54-
"git commit -m \"update changelog v0.10.0\"",
51+
"git commit -m \"changelog v0.10.0\"",
5552
"git push origin main",
5653
"git checkout -b refs/heads/v0.10.0:refs/heads/v0.10.0",
5754
"git push --set-upstream origin v0.10.0",

0 commit comments

Comments
 (0)