From ccfca0ee3072f8805355809541b0ca43233faf23 Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 16:16:58 +0400 Subject: [PATCH 1/9] minor workflow fixes --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2a79333..ec71bc1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,7 +28,7 @@ jobs: OLD_PACKAGE_VERSION=$(node -pe 'require("./package.json").version') if [ $NEW_PACKAGE_VERSION != $OLD_PACKAGE_VERSION ]; then - echo "::set-output name=version::$NEW_PACKAGE_VERSION" + echo "{version}={$NEW_PACKAGE_VERSION}" >> $GITHUB_OUTPUT fi build: From c367f5da971551c87eb2277fa263a4c0684bc966 Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 16:28:14 +0400 Subject: [PATCH 2/9] minor changes --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ec71bc1..bac31fc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,12 +20,14 @@ jobs: id: check_version run: | NEW_PACKAGE_VERSION=$(node -pe 'require("./package.json").version') + echo "$NEW_PACKAGE_VERSION" latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) git checkout $latestTag OLD_PACKAGE_VERSION=$(node -pe 'require("./package.json").version') + echo "$OLD_PACKAGE_VERSION" if [ $NEW_PACKAGE_VERSION != $OLD_PACKAGE_VERSION ]; then echo "{version}={$NEW_PACKAGE_VERSION}" >> $GITHUB_OUTPUT From 1733f5a8036273a4e87f7ae55b8043f5f32f5d90 Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 16:31:53 +0400 Subject: [PATCH 3/9] minor changes --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bac31fc..b13279b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,7 +30,8 @@ jobs: echo "$OLD_PACKAGE_VERSION" if [ $NEW_PACKAGE_VERSION != $OLD_PACKAGE_VERSION ]; then - echo "{version}={$NEW_PACKAGE_VERSION}" >> $GITHUB_OUTPUT + echo "Version was changed" + echo "version=$NEW_PACKAGE_VERSION" >> $GITHUB_OUTPUT fi build: From 72a135cf919fc9e3cce68608fba32a514049d936 Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 16:39:30 +0400 Subject: [PATCH 4/9] minor changes --- .github/workflows/build.yaml | 2 +- .github/workflows/release.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 527a2e4..fb120c4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -46,7 +46,7 @@ jobs: if: ${{ inputs.should_pack == true }} run: | VERSION=$(node -pe 'require("./package.json").version') - echo "::set-output name=version::$VERSION" + echo "version=$VERSION" >> $GITHUB_OUTPUT - name: Upload build result if: ${{ inputs.should_pack == true }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b13279b..39eaf17 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -48,6 +48,8 @@ jobs: if: ${{ needs.ensure_version_changed.outputs.version }} name: Publish to npm steps: + - name: echo + run: echo ${{ needs.ensure_version_changed.outputs.version }} - name: Download artifact uses: actions/download-artifact@v3 with: From 7829c21bf7256141f617e4ea95aee0be21bc0b9f Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 16:42:37 +0400 Subject: [PATCH 5/9] minor changes --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 39eaf17..2989a17 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,7 +31,7 @@ jobs: if [ $NEW_PACKAGE_VERSION != $OLD_PACKAGE_VERSION ]; then echo "Version was changed" - echo "version=$NEW_PACKAGE_VERSION" >> $GITHUB_OUTPUT + echo "version=xxxx" >> $GITHUB_OUTPUT fi build: From 83a533b22e2187f4af3c5a8c51f535bd12d9ab95 Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 16:54:27 +0400 Subject: [PATCH 6/9] minor changes --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2989a17..0752b2d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,6 +18,7 @@ jobs: - name: Check if version was changed id: check_version + shell: bash run: | NEW_PACKAGE_VERSION=$(node -pe 'require("./package.json").version') echo "$NEW_PACKAGE_VERSION" From 3e159e467cf861d10c79d1deb840acbf02b3f544 Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 17:00:13 +0400 Subject: [PATCH 7/9] minor changes --- .github/workflows/release.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0752b2d..d4c9f26 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,7 @@ jobs: name: Ensure that version was changed runs-on: ubuntu-latest outputs: - version: ${{ steps.check_version.outputs.version }} + version: xxx steps: - name: Checkout uses: actions/checkout@v3 @@ -18,7 +18,6 @@ jobs: - name: Check if version was changed id: check_version - shell: bash run: | NEW_PACKAGE_VERSION=$(node -pe 'require("./package.json").version') echo "$NEW_PACKAGE_VERSION" From 51db7dc7ffd959ee87118627305af52b175ddb8f Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 17:09:04 +0400 Subject: [PATCH 8/9] minor changes --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d4c9f26..794d32c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,7 @@ jobs: name: Ensure that version was changed runs-on: ubuntu-latest outputs: - version: xxx + version: ${{ steps.check_version.outputs.version }} steps: - name: Checkout uses: actions/checkout@v3 @@ -44,7 +44,7 @@ jobs: publish: runs-on: ubuntu-latest - needs: [build] + needs: [build, ensure_version_changed] if: ${{ needs.ensure_version_changed.outputs.version }} name: Publish to npm steps: From 0fe9320915d4178ec6c31567382fffd4fbe8f45a Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 17:09:56 +0400 Subject: [PATCH 9/9] minor changes --- .github/workflows/release.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 794d32c..410afa8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -48,8 +48,6 @@ jobs: if: ${{ needs.ensure_version_changed.outputs.version }} name: Publish to npm steps: - - name: echo - run: echo ${{ needs.ensure_version_changed.outputs.version }} - name: Download artifact uses: actions/download-artifact@v3 with: