From ee857d86d4aa029282dab670eb6bfe5fb7473cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Sat, 24 Feb 2024 00:00:01 +0100 Subject: [PATCH] added new workflow for version Sometimes I forget to bump the version. So here is an action to check and yell at me when I forget Update package.json --- .github/workflows/check-version-bump.yml | 20 ++++++++++++++++++++ package.json | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check-version-bump.yml 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/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": {