Skip to content

Commit

Permalink
ci: fix npm publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Jul 8, 2024
1 parent b913f09 commit 261e978
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: goreleaser
name: release

on:
push:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master (unreleased)

## 1.6.20 (2024-07-08)

## 1.6.19 (2024-07-08)

- perf: startup time reduce ([#705](https://github.com/evilmartians/lefthook/pull/705)) by @dalisoft
Expand Down
5 changes: 4 additions & 1 deletion packaging/pack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def publish
puts "Publishing lefthook npm..."
cd(File.join(__dir__, "npm"))
Dir["lefthook*"].each do |package|
system("npm publish --access public #{package}", exception: true)
puts "publishing #{package}"
cd(File.join(__dir__, "npm", package))
system("npm publish --access public", exception: true)
cd(File.join(__dir__, "npm"))
end

puts "Publishing @evilmartians/lefthook npm..."
Expand Down

0 comments on commit 261e978

Please sign in to comment.