Skip to content

Commit 488f5cc

Browse files
Fix fetch-depth in release workflows
1 parent 426706b commit 488f5cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
# This action can be executed by 3rd party users and it should not be able to run arbitrary code from a PR.
5151
- name: Checkout current branch
5252
uses: actions/checkout@v4
53+
with:
54+
fetch-depth: 0
5355
- name: Install pnpm
5456
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # [email protected]
5557
with:
@@ -92,7 +94,7 @@ jobs:
9294
- uses: actions/checkout@v3
9395
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
9496
with:
95-
fetch-depth: 1
97+
fetch-depth: 0
9698
- name: Setup deps
9799
uses: ./.github/actions/setup-cli-deps
98100
with:
@@ -122,7 +124,7 @@ jobs:
122124
- uses: actions/checkout@v3
123125
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
124126
with:
125-
fetch-depth: 1
127+
fetch-depth: 0
126128
- name: Setup deps
127129
uses: ./.github/actions/setup-cli-deps
128130
with:

0 commit comments

Comments
 (0)