From 3b4857210423873e2d9c5db40c892e9457a549d8 Mon Sep 17 00:00:00 2001 From: michaelfarrell76 Date: Fri, 8 Jul 2022 17:23:21 -0700 Subject: [PATCH 1/6] Testing CI job to validate package.json bump --- .github/workflows/require_package_bump.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/require_package_bump.yml diff --git a/.github/workflows/require_package_bump.yml b/.github/workflows/require_package_bump.yml new file mode 100644 index 00000000..e0b0c747 --- /dev/null +++ b/.github/workflows/require_package_bump.yml @@ -0,0 +1,18 @@ +name: Require package.json Bump +on: push + +jobs: + publish: + name: Publish to NPM & GitHub Package Registry + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + ref: master + - name: Check version changes + uses: EndBug/version-check@v1 + id: check + - name: Version update detected + if: steps.check.outputs.changed == 'true' + run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"' From dae72ecd73bc6dc8d91a067c892e973275bb9fef Mon Sep 17 00:00:00 2001 From: michaelfarrell76 Date: Fri, 8 Jul 2022 17:24:53 -0700 Subject: [PATCH 2/6] fies --- .github/workflows/require_package_bump.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/require_package_bump.yml b/.github/workflows/require_package_bump.yml index e0b0c747..8b86274c 100644 --- a/.github/workflows/require_package_bump.yml +++ b/.github/workflows/require_package_bump.yml @@ -2,14 +2,13 @@ name: Require package.json Bump on: push jobs: - publish: - name: Publish to NPM & GitHub Package Registry + require-package-json-version-bump: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 with: - ref: master + ref: main - name: Check version changes uses: EndBug/version-check@v1 id: check From f27e05ebfbc6606cba711087dbff2741f3113bb7 Mon Sep 17 00:00:00 2001 From: michaelfarrell76 Date: Fri, 8 Jul 2022 17:27:27 -0700 Subject: [PATCH 3/6] another --- .github/workflows/require_package_bump.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/require_package_bump.yml b/.github/workflows/require_package_bump.yml index 8b86274c..e35508b5 100644 --- a/.github/workflows/require_package_bump.yml +++ b/.github/workflows/require_package_bump.yml @@ -15,3 +15,5 @@ jobs: - name: Version update detected if: steps.check.outputs.changed == 'true' run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"' + - name: Version update undetected + run: 'echo "change status ${{ steps.check.outputs.changed }}"' From 26e1f05f7b7afc61a382d1b54eb294185baaa293 Mon Sep 17 00:00:00 2001 From: michaelfarrell76 Date: Fri, 8 Jul 2022 17:33:58 -0700 Subject: [PATCH 4/6] attempt --- .github/workflows/require_package_bump.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/require_package_bump.yml b/.github/workflows/require_package_bump.yml index e35508b5..3b121289 100644 --- a/.github/workflows/require_package_bump.yml +++ b/.github/workflows/require_package_bump.yml @@ -15,5 +15,6 @@ jobs: - name: Version update detected if: steps.check.outputs.changed == 'true' run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"' - - name: Version update undetected - run: 'echo "change status ${{ steps.check.outputs.changed }}"' + - name: Log when unchanged + if: steps.check.outputs.changed == 'false' + run: 'echo "No version change :/"' From 54e33dd5eefd5c18da209f26b347e43d84a60f8d Mon Sep 17 00:00:00 2001 From: michaelfarrell76 Date: Fri, 8 Jul 2022 17:39:08 -0700 Subject: [PATCH 5/6] another --- .github/workflows/require_package_bump.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/require_package_bump.yml b/.github/workflows/require_package_bump.yml index 3b121289..be689d4d 100644 --- a/.github/workflows/require_package_bump.yml +++ b/.github/workflows/require_package_bump.yml @@ -9,6 +9,8 @@ jobs: uses: actions/checkout@v2 with: ref: main + - name: Install and build + run: yarn && yarn build - name: Check version changes uses: EndBug/version-check@v1 id: check From ccb170837e2418b22d94280543133a17afa893d1 Mon Sep 17 00:00:00 2001 From: michaelfarrell76 Date: Fri, 8 Jul 2022 17:41:52 -0700 Subject: [PATCH 6/6] token --- .github/workflows/require_package_bump.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/require_package_bump.yml b/.github/workflows/require_package_bump.yml index be689d4d..791005cf 100644 --- a/.github/workflows/require_package_bump.yml +++ b/.github/workflows/require_package_bump.yml @@ -8,9 +8,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 with: + token: ${{ secrets.GITHUB_TOKEN }} ref: main - - name: Install and build - run: yarn && yarn build - name: Check version changes uses: EndBug/version-check@v1 id: check