From c621c6e93469883f3aa709555d4498b0400dd2d7 Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Mon, 11 Oct 2021 18:23:26 +0300 Subject: [PATCH] chore: update publish cli workflow --- .github/workflows/publish-cli.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml index 9bfa3ffffe..fded1a74dd 100644 --- a/.github/workflows/publish-cli.yml +++ b/.github/workflows/publish-cli.yml @@ -2,12 +2,13 @@ name: Publish cli on: push: - tags: - - v[0-9]*.[0-9]*.[0-9]* + branches: + - master jobs: bundle: + needs: [ check-version-cli ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -29,13 +30,14 @@ jobs: path: bundles retention-days: 1 unit-tests: + needs: [ check-version-cli ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - run: npm ci - run: npm test e2e-tests: - needs: [bundle] + needs: [ bundle ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -43,10 +45,11 @@ jobs: - name: Download bundled artifact uses: actions/download-artifact@v2 with: - name: bundles - path: bundles-cli + name: bundles-cli + path: bundles - run: npm run e2e bundle-cli: + needs: [ check-version-cli ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -72,7 +75,6 @@ jobs: check-version-cli: name: Check Version runs-on: ubuntu-latest - needs: [bundle-cli, unit-tests, e2e-tests] outputs: changed: ${{ steps.check.outputs.changed }} steps: @@ -88,7 +90,7 @@ jobs: file-url: https://unpkg.com/redoc-cli/package.json static-checking: localIsNew publish-cli: - needs: [ check-version-cli ] + needs: [bundle-cli, unit-tests, e2e-tests] if: needs.check-version-cli.outputs.changed == 'true' runs-on: ubuntu-latest steps: