Skip to content

Commit

Permalink
build: improve monorepo build (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi authored Sep 16, 2024
1 parent 8f29ba4 commit 8e886a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 2.5.0

* feat: PHP 8.4 compatibility
* build: improve monorepo build

## 2.4.0

Expand Down
17 changes: 13 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,24 @@ clean:
rm -rf var

.PHONY: monorepo
monorepo: validate monorepo-merge
monorepo: monorepo-validate monorepo-merge

.PHONY: monorepo-validate
monorepo-validate:
vendor/bin/monorepo-builder validate

.PHONY: monorepo-merge
monorepo-merge:
$(PHP) vendor/bin/monorepo-builder merge

.PHONY: validate
monorepo-validate:
$(PHP) vendor/bin/monorepo-builder validate
.PHONY: monorepo-release-%
monorepo-release-%:
git update-index --really-refresh > /dev/null; git diff-index --quiet HEAD || (echo "Working directory is not clean, aborting" && exit 1)
[ $$(git branch --show-current) == main ] || (echo "Not on main branch, aborting" && exit 1)
$(PHP) vendor/bin/monorepo-builder release $*
git switch -c release/$*
git add .
git commit -m "release: $*"

.PHONY: lint-container
lint-container:
Expand Down

0 comments on commit 8e886a9

Please sign in to comment.