Skip to content

Commit 6c8d395

Browse files
committed
fix(ci): disable lefthook in publish workflow
Changesets action commits version bumps which triggers lefthook's pre-commit hook in CI. The hook runs nx affected which fails without an Nx Cloud DTE agent context. Setting LEFTHOOK=0 skips hooks for all git operations in the publish jobs. Also replaces stale HUSKY=0 with LEFTHOOK=0 in the snapshot job.
1 parent 7a45452 commit 6c8d395

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
pull-requests: write
4141
id-token: write
4242
runs-on: ubuntu-latest
43+
env:
44+
LEFTHOOK: 0
4345
steps:
4446
- uses: actions/checkout@v4
4547
with:
@@ -101,7 +103,7 @@ jobs:
101103
pull-requests: write
102104
runs-on: ubuntu-latest
103105
env:
104-
HUSKY: 0
106+
LEFTHOOK: 0
105107
steps:
106108
- name: Branch name
107109
run: |

0 commit comments

Comments
 (0)