Skip to content

Commit

Permalink
just check if master when checking version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter275 committed Aug 28, 2024
1 parent 00c777b commit fc35d1a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 57 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/pr-master.yml

This file was deleted.

23 changes: 22 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,25 @@ jobs:
run: pnpm install

- name: Build Package
run: pnpm build
run: pnpm build
version-check:
needs: build
if: github.ref == 'refs/heads/master'
steps:
- name: Check if version has been updated
if:
id: check-version-changed
uses: EndBug/version-check@v2
with:
diff-search: true

- name: Log when changed
if: steps.check-version-changed.outputs.changed == 'true'
run: |
echo "Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"
- name: Log when unchanged
if: steps.check-version-changed.outputs.changed == 'false'
run: |
echo "No version change. Please update the package version in package.json"
exit 1

0 comments on commit fc35d1a

Please sign in to comment.