Skip to content

Merge pull request #78 from scruplelesswizard/check-for-version-change #36

Merge pull request #78 from scruplelesswizard/check-for-version-change

Merge pull request #78 from scruplelesswizard/check-for-version-change #36

Workflow file for this run

name: Pull Request
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest
- name: Install Dependencies
run: pnpm install
- name: Build Package
run: pnpm build
- name: Check if version has been updated
id: check-version-changed
uses: EndBug/version-check@v2
with:
diff-search: true
- name: Log when changed
if: steps.check-version-changed.outputs.changed == 'true'
run: echo "Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"

Check failure on line 31 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
- name: Log when unchanged
if: steps.check-version-changed.outputs.changed == 'false'
run: |
echo "No version change. Please update the package version in package.json"
exit 1