feat: add shared schema registry for plugins and enhance plugin conte… #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Enforce Version Bump on Merge to Master | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| check-version-bump: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 # fetch previous commit | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Install jq | |
| run: sudo apt-get update && sudo apt-get install -y jq | |
| - name: Verify version bump | |
| run: | | |
| PREV_VERSION=$(git show HEAD~1:package.json | jq -r .version) | |
| CUR_VERSION=$(jq -r .version package.json) | |
| echo "Previous version: $PREV_VERSION" | |
| echo "Current version: $CUR_VERSION" | |
| # Compare semantic versions | |
| if [ "$(printf '%s\n' "$PREV_VERSION" "$CUR_VERSION" | sort -V | head -n1)" = "$CUR_VERSION" ]; then | |
| echo "❌ Version was not bumped (or decreased) compared to previous commit." | |
| exit 1 | |
| else | |
| echo "✅ Version bump detected." | |
| fi |