diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9674cb7..301f508 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -19,3 +19,19 @@ jobs: - name: Build Package run: pnpm build + + - name: Check if version has been updated + 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