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 }}