Bump lodash in the npm_and_yarn group across 1 directory #55
Workflow file for this run
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: Version Consistency | |
| on: [ "push" ] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Read and check versions | |
| run: | | |
| # Extract version from package.json | |
| PACKAGE_VERSION=$(jq -r '.version' package.json) | |
| # Extract version from jsr.json | |
| JSR_VERSION=$(jq -r '.version' jsr.json) | |
| # Extract version from docs/index.html (it's in .package > h3) | |
| DOCS_VERSION=$(grep -oP '(?<=@mkody\/twitch-emoticons\s)[0-9]+\.[0-9]+\.[0-9]+(?:-[a-zA-Z0-9.-]+)?' docs/index.html) | |
| # Debug output | |
| echo "Package.json version: $PACKAGE_VERSION" | |
| echo "JSR.json version: $JSR_VERSION" | |
| echo "Docs index.html version: $DOCS_VERSION" | |
| # Test | |
| if [ "$PACKAGE_VERSION" = "$JSR_VERSION" ] && [ "$PACKAGE_VERSION" = "$DOCS_VERSION" ]; then | |
| echo "All versions match." | |
| exit 0 | |
| else | |
| echo "Version mismatch." | |
| exit 1 | |
| fi |