From 4d4020f6f41fa18affb751ba01caf17af219e3c2 Mon Sep 17 00:00:00 2001 From: Jason Staten Date: Tue, 10 Dec 2019 11:08:08 -0700 Subject: [PATCH] feat(build): only publish from master branch Semantic release stops it, but lets short circuit in builds.sr.ht to make sure the step is skipped entirely --- .build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.build.yml b/.build.yml index e388677..ae5357f 100644 --- a/.build.yml +++ b/.build.yml @@ -16,6 +16,9 @@ tasks: - validate: | cd angularjs-testing-library yarn validate + if [ "$(git rev-parse origin/master)" != "$(git rev-parse HEAD)" ]; then \ + complete-build; \ + fi - publish: | . ~/.npm-token cd angularjs-testing-library