diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3700b72692..bb74b290de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,20 +62,21 @@ jobs: appInstallationType: repo appInstallationValue: ${{ github.repository }} - - name: Release - if: github.event_name != 'pull_request' && contains('refs/heads/master', github.ref) + - name: Dry run release + if: github.event_name != 'pull_request' env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} run: | cp .release/* . yarn yarn release -d --repositoryUrl https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git - - - name: Dry run release - if: github.event_name != 'pull_request' + + - name: Release + if: github.event_name != 'pull_request' && contains('refs/heads/master', github.ref) env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} run: | cp .release/* . yarn - yarn release -d --repositoryUrl https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git + yarn release --repositoryUrl https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git +