From cbb91c9cf93c53f2f8f30a7ddac7c6fa158e8ba2 Mon Sep 17 00:00:00 2001 From: Kevin Rangel Date: Mon, 5 Jun 2023 17:05:22 +0200 Subject: [PATCH] chore(action): split publish docs site of released version into separate job --- .github/workflows/release.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4012ecf5..863b82b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,8 @@ jobs: release_or_publish_package: name: Release & Publish to NPM Registry runs-on: ubuntu-latest + outputs: + was_published: ${{ steps.changesets.outputs.published }} steps: - uses: actions/checkout@v3 with: @@ -32,8 +34,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Publish Released Documentation - if: steps.changesets.outputs.published == 'true' - uses: ./.github/workflows/github-pages.yml - with: - version_to_deploy: 'latest' + publish_released_docs: + needs: release_or_publish_package + if: needs.release_or_publish_package.outputs.was_published == 'true' + uses: ./.github/workflows/github-pages.yml + with: + version_to_deploy: 'latest'