From 6c8d395dd5389fc5b50705ec0a491ac20578d5ab Mon Sep 17 00:00:00 2001 From: Ryan Bas Date: Wed, 15 Apr 2026 17:41:39 -0600 Subject: [PATCH] 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. --- .github/workflows/publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8588cd28c3..71ba2c4ad5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,6 +40,8 @@ jobs: pull-requests: write id-token: write runs-on: ubuntu-latest + env: + LEFTHOOK: 0 steps: - uses: actions/checkout@v4 with: @@ -101,7 +103,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest env: - HUSKY: 0 + LEFTHOOK: 0 steps: - name: Branch name run: |