Include defaults in serialized JSON #22
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: Pull Request | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2.2.4 | |
with: | |
version: latest | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Build Package | |
run: pnpm build | |
- name: "Compare Version" | |
id: compare | |
uses: sharesight/compare-package-json-version-with-latest@v2.0.0 | |
- name: Debug | |
run: | | |
echo current_version: ${{ steps.compare.outputs.current_version }} | |
echo latest_version: ${{ steps.compare.outputs.latest_version }} | |
echo matches?: ${{ steps.compare.outputs.matches }} | |
echo newer?: ${{ steps.compare.outputs.newer }} | |
echo diff: ${{ steps.compare.outputs.diff }} | |
- name: Fail if not newer | |
if: steps.compare.outputs.newer != 'true' | |
run: | | |
echo Version was not newer: ${{ steps.compare.outputs.current_version }} vs. ${{ steps.compare.outputs.latest_version }} | |
exit 1 |