Skip to content

Commit 522da6e

Browse files
committed
update release script not to call lefthook
1 parent 164a49d commit 522da6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rakelib/release.rake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ task :release, %i[gem_version dry_run tools_install] do |_t, args|
6666
release_it_command << " #{npm_version}" unless npm_version.strip.empty?
6767
release_it_command << " --npm.publish --no-git.requireCleanWorkingDir"
6868
release_it_command << " --dry-run --verbose" if is_dry_run
69-
sh_in_dir(gem_root, release_it_command)
69+
# Disable lefthook pre-commit hooks during release to prevent file modifications
70+
sh_in_dir(gem_root, "LEFTHOOK=0 #{release_it_command}")
7071

7172
# Release the new gem version
7273

0 commit comments

Comments
 (0)