From 8555bd742f151934f021581847a87767b173ab31 Mon Sep 17 00:00:00 2001 From: Sergii Stotskyi Date: Tue, 21 Nov 2023 15:46:15 +0200 Subject: [PATCH] chore: fix release workflow whene there are no changes (#846) --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 116e1342d..30a310f71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,12 @@ jobs: env: GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.RELEASE_NPM_TOKEN }} + ACTIONS_STEP_DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }} run: | + if [[ "${TRACE:-false}" == true || "${ACTIONS_STEP_DEBUG:-false}" == true ]]; then + set -o xtrace # Trace the execution of the script (debug) + fi + changed_paths=$(gh pr view --json files --jq '.files.[].path' "${{ github.event.pull_request.number }}" | cut -d / -f 1,2 | uniq) changed_packages=$(echo "$changed_paths" | grep ./packages) pnpm_options=''