From bb896a80b958cdf455ddbec85196103cf00063d3 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Tue, 8 Nov 2022 12:00:59 +0300 Subject: [PATCH] ci: Fix Makefile for building and publishing packages Signed-off-by: Valentin Kiselev --- packaging/Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packaging/Makefile b/packaging/Makefile index 1c1e2f52..b61371ac 100644 --- a/packaging/Makefile +++ b/packaging/Makefile @@ -13,10 +13,10 @@ DARWIN_ARM64_BIN=$(DIST_DIR)/lefthook_darwin_arm64/lefthook prepare: clean set-version put-readme put-binaries publish: - find npm -type d -name 'lefthook*' -exec npm publish --access public \{} \; - npm publish --access public npm-bundled - npm publish --access public npm-installer - cd rubygems; rake build; gem push pkg/*.gem + cd npm; find . -type d -name 'lefthook*' -exec npm publish --access public \{} \; ; cd - + cd npm-bundled; npm publish --access public ; cd - + cd npm-installer; npm publish --access public ; cd - + cd rubygems; rake build; gem push pkg/*.gem ; cd - # Update versions of all packages set-version: @@ -44,7 +44,5 @@ put-readme: clean: find npm/ -name 'README.md' -exec rm \{} \; find npm/ -type f -name 'lefthook*' -executable -exec rm \{} \; - rm npm-bundled/README.md - git clean -fdX npm-bundled/bin/ - rm npm-installer/README.md + git clean -fdX npm-installer/ npm-bundled/ npm-bundled/bin/ git clean -fdX rubygems/libexec/ rubygems/pkg/