From 1bba65a8f760ea4478493a9fd2e6be86fb8ddb08 Mon Sep 17 00:00:00 2001 From: PKulkoRaccoonGang Date: Wed, 6 Dec 2023 23:37:13 +0200 Subject: [PATCH] refactor: corrected semantic release version preview --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eeaa4d1db4..00369a25eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,12 +33,11 @@ jobs: run: npm run build-docs - name: Coverage uses: codecov/codecov-action@v3 - - name: Extract branch name - shell: bash - run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT - id: extract_branch - name: Preview semantic-release version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} - run: npx semantic-release --dry-run --branches=${{ steps.extract_branch.outputs.branch}} + run: | + git checkout $GITHUB_HEAD_REF + unset GITHUB_ACTIONS + npx semantic-release --dry-run --no-ci --branches=$GITHUB_HEAD_REF