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 diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 0d4534ba5..4082106d0 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -3,9 +3,9 @@ on: push: branches: [ "main" ] pull_request: - branches: [ "main" ] + branches: [ "main", "NextRelease", "PatchCurrentRelease" ] jobs: - build: + eslint: runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 328fd5408..0a3d4666a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,9 +6,9 @@ on: push: branches: [ "main" ] pull_request: - branches: [ "main" ] + branches: [ "main", "NextRelease", "PatchCurrentRelease" ] jobs: - build: + jest: runs-on: ubuntu-latest strategy: matrix: 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": {