From 261e9781a5a4c8e0407d6c66d8b000feb6e715f9 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Mon, 8 Jul 2024 11:01:32 +0300 Subject: [PATCH] ci: fix npm publishing --- .github/workflows/release.yml | 2 +- CHANGELOG.md | 2 ++ packaging/pack.rb | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18fefdbb..fe9f507a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: goreleaser +name: release on: push: diff --git a/CHANGELOG.md b/CHANGELOG.md index 9394dd86..f082b53c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packaging/pack.rb b/packaging/pack.rb index cc6dc22a..97e78860 100755 --- a/packaging/pack.rb +++ b/packaging/pack.rb @@ -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..."