Skip to content

Commit 1642e4f

Browse files
committed
Add sparse checkout
1 parent 3b30fb0 commit 1642e4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/new-workflow.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717
- name: Check out source code
1818
uses: actions/checkout@v4
19+
with:
20+
sparse-checkout: ./lib/repotools
1921

2022
- name: Enable Corepack
2123
run: corepack enable
@@ -91,6 +93,14 @@ jobs:
9193
package: ${{ fromJSON(needs.find-packages.outputs.libs) }}
9294

9395
steps:
96+
- name: Check out source code
97+
uses: actions/checkout@v4
98+
with:
99+
sparse-checkout: ${{ matrix.package.directory }}
100+
101+
- name: Enable Corepack
102+
run: corepack enable
103+
94104
- name: Install dependencies
95105
run: yarn workspaces focus ${{ matrix.package.name }}
96106

0 commit comments

Comments
 (0)