diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 946e89f..6a04cd3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,11 @@ name: Release on: - push: - branches: - - main + workflow_run: + workflows: ["Run tests"] + branches: [main] + types: + - completed concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -11,16 +13,11 @@ permissions: pages: write # to deploy to Pages id-token: write -# env: -# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} -# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - jobs: release: name: Release runs-on: ubuntu-latest - outputs: - published: ${{ steps.changesets.outputs.published }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 with: @@ -61,7 +58,6 @@ jobs: deploy-pages: needs: release - if: ${{ needs.release.outputs.published == 'true' }} name: Deploy Docs to GitHub Pages runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cec133e..a0c4fa2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,10 +12,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} cancel-in-progress: true -env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - jobs: test: name: Run tests @@ -37,8 +33,5 @@ jobs: - name: Lint run: pnpm run lint - # - name: Check types - # run: pnpm run tsc - - name: Run unit tests run: pnpm run test