Skip to content

Commit

Permalink
Improve preview version naming (#2910)
Browse files Browse the repository at this point in the history
* chore(uikit canary version): improve preview version naming

* chore(build): restart checks

---------

Co-authored-by: Ddouglasz <[email protected]>
  • Loading branch information
ddouglasz and Ddouglasz authored Sep 17, 2024
1 parent 29ee82e commit a1f7ec4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit a1f7ec4

Please sign in to comment.