Schema validation #28
Workflow file for this run
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 that package version changed | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
jobs: | |
check-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
cache-dependency-path: package-lock.json | |
- name: Check version | |
id: check | |
uses: EndBug/version-check@v2 | |
with: | |
file-url: https://unpkg.com/dyna-record@latest/package.json | |
static-checking: localIsNew | |
- name: Fail if package.json version has not changed | |
if: steps.check.outputs.changed == 'false' | |
run: | | |
echo "package.json version has not changed. Run 'npm version <patch|minor|major>'' and push changes." | |
exit 1 |