Skip to content

Commit

Permalink
added new workflow for version
Browse files Browse the repository at this point in the history
Sometimes I forget to bump the version. So here is an action to check and yell at me when I forget
  • Loading branch information
BarthPaleologue committed Feb 23, 2024
1 parent 936a43c commit b0a991a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check-version-bump.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b0a991a

Please sign in to comment.