diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 78492808..fae00684 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,8 +57,8 @@ jobs: # See also https://nx.dev/ci/recipes/set-up/monorepo-ci-github-actions#configuring-ci-using-github-actions-and-nx - name: Setup NX 2/2 🎛 if: | - !((!github.event.workflow_run.head_branch && github.ref == 'refs/heads/master') || github.event.workflow_run.head_branch == 'refs/remotes/origin/master') && - !(github.event.workflow_run.head_branch == 'refs/remotes/origin/dev' || github.ref == 'refs/heads/dev') + !((!github.event.workflow_run.head_branch && github.ref == 'refs/heads/master') || github.event.workflow_run.head_branch == 'master') && + !(github.event.workflow_run.head_branch == 'dev' || github.ref == 'refs/heads/dev') run: git branch --track master origin/master - name: Build 🔨 @@ -78,7 +78,7 @@ jobs: - name: Version and publish (prod) 🚀 if: | - (!github.event.workflow_run.head_branch && github.ref == 'refs/heads/master') || github.event.workflow_run.head_branch == 'refs/remotes/origin/master' + (!github.event.workflow_run.head_branch && github.ref == 'refs/heads/master') || github.event.workflow_run.head_branch == 'master' run: | yarn lerna publish \ --conventional-commits \ @@ -89,8 +89,8 @@ jobs: - name: Version and publish (dev) 🚀 if: - github.event.workflow_run.head_branch == 'refs/remotes/origin/dev' || - github.ref == 'refs/heads/dev' + github.event.workflow_run.head_branch == 'dev' || github.ref == + 'refs/heads/dev' run: | yarn lerna publish 0.0.0-development-${GITHUB_SHA:0:7}-$(date +%Y%m%d) \ --message "chore(release): bump version to %v" \