Skip to content

Commit

Permalink
ci: Fix Makefile for building and publishing packages
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
  • Loading branch information
mrexox committed Nov 8, 2022
1 parent 617c1fb commit bb896a8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packaging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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/

0 comments on commit bb896a8

Please sign in to comment.