Skip to content

Commit

Permalink
chore(uikit canary version): [publish_preview] fix bug - gh action wo…
Browse files Browse the repository at this point in the history
…rkflow (#2919)

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

0 comments on commit cecef2a

Please sign in to comment.