diff --git a/.github/workflows/check-version-bump.yml b/.github/workflows/check-version-bump.yml new file mode 100644 index 000000000..afa8e2340 --- /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 the 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 diff --git a/package.json b/package.json index 58493791f..07fbfe420 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" }, - "version": "1.6.2", + "version": "1.6.4", "description": "CosmosJourneyer", "name": "cosmos-journeyer", "scripts": {