Skip to content

Commit

Permalink
fix: try to fix semantic release preview
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrusakov committed Dec 6, 2023
1 parent 5394e9d commit e865a67
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,18 @@ jobs:
node-version: ${{env.NODE_VER }}
- name: Install dependencies
run: npm ci
- name: Check Types
run: npm run type-check
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Build Docs
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
run: echo "branch=$(echo $GITHUB_HEAD_REF)" >> $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: |
echo "$GITHUB_HEAD_REF"
echo "${{ steps.extract_branch.outputs.branch}}"
git checkout $GITHUB_HEAD_REF
unset GITHUB_ACTIONS
unset GITHUB_EVENT_NAME
npx semantic-release --dry-run --no-ci --branches=${{ steps.extract_branch.outputs.branch }}

0 comments on commit e865a67

Please sign in to comment.