From 1cd21c71e64093b265bb182ec9869f89fc58c60b Mon Sep 17 00:00:00 2001 From: Jeev B Date: Mon, 9 Jan 2023 14:32:02 -0800 Subject: [PATCH] Fix dependency of release pipeline Signed-off-by: Jeev B --- .github/workflows/checks.yml | 46 ++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 3abe5d1d3..b274c6b57 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -51,29 +51,6 @@ jobs: - name: Run linter run: make lint - release: - name: Generate Release - if: ${{ (github.event_name != 'pull_request') && (needs.extract_branch.outputs.branch == 'master') }} - needs: [unit_tests_with_coverage, lint_project, build_docker_image, extract_branch] - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup Node.js - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install dependencies - run: yarn install --frozen-lockfile - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} - GIT_AUTHOR_NAME: "flyte bot" - GIT_AUTHOR_EMAIL: "admin@flyte.org" - GIT_COMMITTER_NAME: "flyte bot" - GIT_COMMITTER_EMAIL: "admin@flyte.org" - run: npx semantic-release - check_for_tag: name: Get Release Tag needs: release @@ -114,3 +91,26 @@ jobs: secrets: FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} FLYTE_BOT_USERNAME: ${{ secrets.FLYTE_BOT_USERNAME }} + + release: + name: Generate Release + if: ${{ (github.event_name != 'pull_request') && (needs.extract_branch.outputs.branch == 'master') }} + needs: [unit_tests_with_coverage, lint_project, push_docker_image, extract_branch] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} + GIT_AUTHOR_NAME: "flyte bot" + GIT_AUTHOR_EMAIL: "admin@flyte.org" + GIT_COMMITTER_NAME: "flyte bot" + GIT_COMMITTER_EMAIL: "admin@flyte.org" + run: npx semantic-release