Skip to content

Commit

Permalink
chore: correctly fetch git history for lerna commit analyzer (#3141)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 authored Jan 11, 2023
1 parent 8851bb0 commit 5bbaada
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/prerelease-tolgee-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
with:
token: '${{ secrets.TOLGEE_MACHINE_PAT }}'
ref: tolgee-5
# fetch full history for lerna version to work
fetch-depth: 0

- name: Build
uses: actions/setup-node@v2
Expand All @@ -38,7 +40,9 @@ jobs:
run: pnpm install --no-frozen-lockfile

- name: Update version locally
run: lerna version --yes --conventional-commits --force-publish --no-push --no-git-tag-version 5.0.0-${{ github.event.inputs.version }}
run:
lerna version --yes --conventional-commits --force-publish --exact \
--no-push --no-git-tag-version 5.0.0-${{ github.event.inputs.version }}

# Set TOLGEE_UI_VERSION for @tolgee/core build
- name: Set env
Expand All @@ -50,7 +54,8 @@ jobs:
- name: Recreate release with push
run: |
git stash
lerna version --yes --conventional-commits --force-publish --exact --create-release github 5.0.0-${{ github.event.inputs.version }}
lerna version --yes --conventional-commits --force-publish --exact \
--create-release github 5.0.0-${{ github.event.inputs.version }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: '${{ secrets.TOLGEE_MACHINE_PAT }}'
# fetch full history for lerna version to work
fetch-depth: 0

- name: Build
uses: actions/setup-node@v1
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: '${{ secrets.TOLGEE_MACHINE_PAT }}'

- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
# fetch full history for lerna version to work
fetch-depth: 0

- name: Build
uses: actions/setup-node@v1
Expand Down

0 comments on commit 5bbaada

Please sign in to comment.