Release v4.0.0 #52
This file contains 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: check-package-version | |
on: | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-package-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get NPM version is new | |
id: check | |
uses: EndBug/[email protected] | |
with: | |
diff-search: true | |
file-name: ./package.json | |
file-url: https://unpkg.com/eslint-plugin-boundaries@latest/package.json | |
static-checking: localIsNew | |
- name: Check version is new | |
if: steps.check.outputs.changed != 'true' | |
run: | | |
echo "Version not changed" | |
exit 1 | |
- name: Get NPM version | |
id: package-version | |
uses: martinbeentjes/[email protected] | |
- name: Check Changelog version | |
id: changelog_reader | |
uses: mindsers/[email protected] | |
with: | |
version: ${{ steps.package-version.outputs.current-version }} | |
path: ./CHANGELOG.md | |
- name: Read version from Sonar config | |
id: sonar-version | |
uses: christian-draeger/[email protected] | |
with: | |
path: './sonar-project.properties' | |
properties: 'sonar.projectVersion' | |
- name: Check Sonar version | |
if: steps.sonar-version.outputs.sonar-projectVersion != steps.package-version.outputs.current-version | |
run: | | |
echo "Version not changed" | |
exit 1 |