Skip to content

Commit 5b61cde

Browse files
zeakdclaude
andcommitted
ci: disable husky in release workflow and upgrade actions
husky 8 does not auto-detect CI environments (added in v9), so prepare script installs git hooks on CI runners. This caused changesets/action's "Version Packages" commit to trigger the pre-commit hook, which failed on jest ESM issues. - Add HUSKY=0 to install and changesets steps - Upgrade to actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4, Node 22 - Add build step before publish Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 228aa73 commit 5b61cde

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,23 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout Repo
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

18-
- uses: pnpm/action-setup@v2
19-
with:
20-
version: 7
18+
- uses: pnpm/action-setup@v4
2119

22-
- name: Setup Node.js 16.x
23-
uses: actions/setup-node@v3
20+
- name: Setup Node.js 22
21+
uses: actions/setup-node@v4
2422
with:
25-
node-version: 16.x
23+
node-version: 22
24+
cache: pnpm
2625

2726
- name: Install Dependencies
2827
run: pnpm install
28+
env:
29+
HUSKY: '0'
30+
31+
- name: Build
32+
run: pnpm -r run build
2933

3034
- name: Create Release Pull Request or Publish to npm
3135
id: changesets
@@ -35,6 +39,7 @@ jobs:
3539
env:
3640
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3741
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
HUSKY: '0'
3843

3944
- name: Upload package tarballs to GitHub Releases
4045
if: steps.changesets.outputs.published == 'true'

0 commit comments

Comments
 (0)