Skip to content

Commit

Permalink
chore: ensure tags are available in all CI workflows (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Nov 16, 2023
1 parent 894a8b9 commit b489924
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ jobs:

- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
fetch-depth: 0 # we need the tags to be available

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
Expand Down Expand Up @@ -113,7 +112,7 @@ jobs:

- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0 # we need the tags to be available

- name: Install node and npm based on the volta config in our package.json
uses: volta-cli/action@v4
Expand Down Expand Up @@ -155,7 +154,7 @@ jobs:

- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0 # we need the tags to be available

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
Expand Down Expand Up @@ -210,9 +209,8 @@ jobs:
run: echo "NX_RUN_GROUP=${{ needs.create_nx_run_group.outputs.nx_run_group }}" >> $GITHUB_ENV

- uses: actions/checkout@v4

# Fetch all history for all tags and branches in this job because lerna needs it
- run: git fetch --prune --unshallow
with:
fetch-depth: 0 # we need the tags to be available

- name: Install node and npm based on the volta config in our package.json
uses: volta-cli/action@v4
Expand Down

0 comments on commit b489924

Please sign in to comment.