diff --git a/.github/workflows/require_package_bump.yml b/.github/workflows/require_package_bump.yml new file mode 100644 index 00000000..791005cf --- /dev/null +++ b/.github/workflows/require_package_bump.yml @@ -0,0 +1,21 @@ +name: Require package.json Bump +on: push + +jobs: + require-package-json-version-bump: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ref: main + - name: Check version changes + uses: EndBug/version-check@v1 + id: check + - name: Version update detected + if: steps.check.outputs.changed == 'true' + run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"' + - name: Log when unchanged + if: steps.check.outputs.changed == 'false' + run: 'echo "No version change :/"'