Skip to content

Commit

Permalink
refactor: corrected semantic release version preview
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Dec 6, 2023
1 parent 20e512e commit 1bba65a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1bba65a

Please sign in to comment.