Skip to content

Commit

Permalink
ci: fix lerna version detection based on tags (#878)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Jun 17, 2022
1 parent dc0c04e commit 8d67e63
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,14 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# Lerna will use the latest tag to determine the latest released version. As we create a tag for each commit
# we need to remove all pre-release tags so we can determine the last stable release
- name: Remove all pre-release tags
run: git tag -l | grep -vE 'v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$' | xargs git tag -d

# no-private is important to not include the internal packages (demo, sample, etc...)
- name: Update version
run: yarn lerna version --conventional-commits --no-git-tag-version --no-push --yes --exact
run: yarn lerna version --conventional-commits --no-git-tag-version --no-push --yes --exact --no-private

- name: Format lerna changes
run: yarn format
Expand Down

0 comments on commit 8d67e63

Please sign in to comment.