From 0bf9902834bed217410d21612e3746da3c420fb5 Mon Sep 17 00:00:00 2001 From: Erik Kotsiuba Date: Fri, 24 Apr 2026 20:45:58 +0200 Subject: [PATCH] ci: run release only after successful CI --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f67a340..7b94e6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,11 @@ name: Release on: - push: + workflow_run: + workflows: + - CI + types: + - completed branches: - main @@ -13,12 +17,14 @@ permissions: jobs: release: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: + ref: ${{ github.event.workflow_run.head_sha }} fetch-depth: 0 - name: Setup pnpm @@ -42,12 +48,6 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Validate - run: | - pnpm check:ci - pnpm typecheck - pnpm test - - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}