Skip to content

Commit

Permalink
πŸ’š fetch tags and force deep git clone for publish action
Browse files Browse the repository at this point in the history
GH actions/checkout does a shallow clone (depth 1) by
Unfortunately, this breaks Lerna's versioning tools.

See actions/checkout#217
  • Loading branch information
lettertwo committed May 12, 2020
1 parent bd75dec commit e171c6f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'

- name: Fetch all tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- uses: actions/setup-node@v1
env:
Expand All @@ -20,10 +25,10 @@ jobs:
- name: Add node modules bin to system path
run: echo "::add-path::./node_modules/.bin"

- name: Configure CI Git User
- name: Configure git author
run: |
git config --global user.name 'leeroy-jenkins'
git config --global user.email '[email protected]'
git config user.email "[email protected]"
git config user.name "$GITHUB_ACTOR"
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
Expand Down

0 comments on commit e171c6f

Please sign in to comment.