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 7, 2023
1 parent c16a6d4 commit ba3b39f
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Setup Nodejs Env
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
- name: Setup Nodejs
Expand All @@ -23,21 +25,17 @@ jobs:
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
id: extract_branch
- name: Preview semantic-release version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
run: |
git checkout $GITHUB_HEAD_REF
echo "$GITHUB_HEAD_REF"
echo "${{ github.event.pull_request.head.ref }}"
git rev-parse --abbrev-ref HEAD
unset GITHUB_ACTIONS
npx semantic-release --dry-run --no-ci --branches=$GITHUB_HEAD_REF
npx semantic-release --dry-run --no-ci --branches Peter_Kulko/removed-semantic-realise-version

0 comments on commit ba3b39f

Please sign in to comment.