Skip to content

Commit 7c5fa1c

Browse files
committed
Only update the release package.json during a dry run
1 parent 8ab8402 commit 7c5fa1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/release.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function getGitRemote(gitBaseRemote: string): string | false {
111111

112112
// update the version
113113
await command('npm', ['version', releaseVersion, '--no-git-tag-version'], { cwd: 'dist/release' }, true);
114-
await command('npm', ['version', releaseVersion, '--no-git-tag-version'], {}, true);
114+
await command('npm', ['version', releaseVersion, '--no-git-tag-version'], {}, false);
115115

116116
const npmPublishArgs = [
117117
'publish',
@@ -136,7 +136,7 @@ function getGitRemote(gitBaseRemote: string): string | false {
136136

137137
// update the package meta version to next
138138
await command('npm', ['version', nextVersion, '--no-git-tag-version'], { cwd: 'dist/release' }, true);
139-
await command('npm', ['version', nextVersion, '--no-git-tag-version'], {}, true);
139+
await command('npm', ['version', nextVersion, '--no-git-tag-version'], {}, false);
140140

141141
// commit the changes
142142
await command('git', ['commit', '-am', `"Update package metadata"`], false);

0 commit comments

Comments
 (0)