From cecef2ad5e14a27937c919b06ee7f0c20ee37ed9 Mon Sep 17 00:00:00 2001 From: Douglas Egiemeh Date: Wed, 18 Sep 2024 20:13:11 +0200 Subject: [PATCH] chore(uikit canary version): [publish_preview] fix bug - gh action workflow (#2919) Co-authored-by: Ddouglasz --- .github/workflows/preview-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index d27ebcc080..21cfb6cfab 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -74,13 +74,13 @@ jobs: env: GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }} - # Publish preview releases only if the branch starts with "preview/" and packages weren't published already + # Publish preview releases only if the branch starts with "preview/" and the commit message contains "[publish_preview]" - name: Publishing preview releases to npm registry if: startsWith(github.ref, 'refs/heads/preview/') && contains(github.event.head_commit.message, '[publish_preview]') run: | BRANCH_NAME=$(echo "${GITHUB_REF#refs/heads/}" | tr '/' '-') git checkout ${{ github.head_ref }} - yarn changeset version --snapshot ${BRANCH_NAME}" + yarn changeset version --snapshot ${BRANCH_NAME} yarn changeset publish --tag preview env: GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }}