diff --git a/.github/workflows/check-version-bump.yml b/.github/workflows/check-version-bump.yml new file mode 100644 index 000000000..78a8cf5ea --- /dev/null +++ b/.github/workflows/check-version-bump.yml @@ -0,0 +1,20 @@ +name: Check Version Bump +on: + pull_request: + branches: [ "main" ] + +jobs: + check-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: johnnybenson/package-json-versioned-action@v1.0.5 + id: package-json + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check if version has been updated + if: steps.package-json.outputs.has-updated == 'false' + run: | + echo "The version has not been updated" + exit 1 \ No newline at end of file