Skip to content

Commit

Permalink
Bump major version if breaking, minor if not
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Mar 8, 2023
1 parent c4b1d95 commit d939fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
run: yarn
- name: Generate new files
run: yarn generate && yarn build
- name: Update version
run: yarn version --patch --no-git-tag-version
- name: Update version (major if there are deletions in enums.ts, otherwise minor)
run: git diff src/enums.ts | grep "^-[^-]" && yarn version --major --no-git-tag-version || yarn version --minor --no-git-tag-version
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
Expand Down

0 comments on commit d939fc6

Please sign in to comment.