Skip to content

Commit ec75335

Browse files
authored
Merge pull request #62 from objectstack-ai/copilot/add-auto-merge-lockfile-fix
2 parents 1c11aa1 + e535a96 commit ec75335

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ jobs:
3131
with:
3232
version: 9
3333

34+
- name: Configure Git Merge Driver for pnpm-lock.yaml
35+
run: |
36+
# Configure custom merge driver for pnpm-lock.yaml
37+
git config merge.pnpm-merge.name "pnpm-lock.yaml merge driver"
38+
git config merge.pnpm-merge.driver \
39+
"pnpm install --no-frozen-lockfile && \
40+
test -f pnpm-lock.yaml && cp pnpm-lock.yaml %A || exit 1"
41+
42+
# Apply merge driver (CI-only, doesn't affect repository)
43+
echo "pnpm-lock.yaml merge=pnpm-merge" >> .git/info/attributes
44+
3445
- name: Setup Node
3546
uses: actions/setup-node@v4
3647
with:

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ jobs:
2121
with:
2222
version: 9
2323

24+
- name: Configure Git Merge Driver for pnpm-lock.yaml
25+
run: |
26+
# Configure custom merge driver for pnpm-lock.yaml
27+
git config merge.pnpm-merge.name "pnpm-lock.yaml merge driver"
28+
git config merge.pnpm-merge.driver \
29+
"pnpm install --no-frozen-lockfile && \
30+
test -f pnpm-lock.yaml && cp pnpm-lock.yaml %A || exit 1"
31+
32+
# Apply merge driver (CI-only, doesn't affect repository)
33+
echo "pnpm-lock.yaml merge=pnpm-merge" >> .git/info/attributes
34+
2435
- name: Setup Node.js 20.x
2536
uses: actions/setup-node@v4
2637
with:

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ jobs:
1919
with:
2020
version: 9
2121

22+
- name: Configure Git Merge Driver for pnpm-lock.yaml
23+
run: |
24+
# Configure custom merge driver for pnpm-lock.yaml
25+
git config merge.pnpm-merge.name "pnpm-lock.yaml merge driver"
26+
git config merge.pnpm-merge.driver \
27+
"pnpm install --no-frozen-lockfile && \
28+
test -f pnpm-lock.yaml && cp pnpm-lock.yaml %A || exit 1"
29+
30+
# Apply merge driver (CI-only, doesn't affect repository)
31+
echo "pnpm-lock.yaml merge=pnpm-merge" >> .git/info/attributes
32+
2233
- name: Setup Node.js 20.x
2334
uses: actions/setup-node@v4
2435
with:

0 commit comments

Comments
 (0)