From 589e9fdfc9bfce9804d3ea11773c6b772053811b Mon Sep 17 00:00:00 2001 From: Alex Varchuk Date: Wed, 24 Apr 2024 16:18:04 +0300 Subject: [PATCH] fix: publish script --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 521aaf53db..f48cf26193 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -50,7 +50,6 @@ jobs: needs: [bundle, unit-tests, e2e-tests] outputs: changed: ${{ steps.check.outputs.changed }} - version: ${{ steps.check.outputs.version }} steps: - name: Checkout repository uses: actions/checkout@v3 @@ -65,6 +64,7 @@ jobs: publish: name: Publish to NPM needs: [check-version] + if: needs.check-version.outputs.changed == 'true' runs-on: ubuntu-latest steps: - uses: actions/setup-node@v3 @@ -95,6 +95,7 @@ jobs: publish-cdn: name: Publish to CDN needs: [check-version] + if: needs.check-version.outputs.changed == 'true' runs-on: ubuntu-latest steps: - name: Checkout repository @@ -113,7 +114,8 @@ jobs: invalidate-cache: name: Clear cache runs-on: ubuntu-latest - needs: [publish, publish-cdn] + needs: [check-version, publish, publish-cdn] + if: needs.check-version.outputs.changed == 'true' steps: - name: Checkout repository uses: actions/checkout@v3