From a1f7ec400be35477aaa3a669863508378f491be4 Mon Sep 17 00:00:00 2001 From: Douglas Egiemeh Date: Tue, 17 Sep 2024 16:29:43 +0200 Subject: [PATCH] Improve preview version naming (#2910) * chore(uikit canary version): improve preview version naming * chore(build): restart checks --------- Co-authored-by: Ddouglasz --- .github/workflows/preview-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index e0ac4235b3..c1cf4118aa 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -92,8 +92,10 @@ jobs: - name: Publishing preview releases to npm registry if: steps.changesets.outputs.published != 'true' && startsWith(github.ref, 'refs/heads/preview/') run: | + BRANCH_NAME=$(echo "${GITHUB_REF#refs/heads/}" | tr '/' '-') + DATE=$(date +"%Y%m%d") git checkout ${{ github.head_ref }} - yarn changeset version --snapshot preview + yarn changeset version --snapshot "0.0.0-${BRANCH_NAME}-${DATE}" yarn changeset publish --tag preview env: GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }}