From 77d3812f3f0b16afe057a51d4349b4b897327d3b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 3 Aug 2026 15:00:31 +0000 Subject: [PATCH] ci: make releases work with full git history semantic-release was checking out a shallow clone, so re-runs on chore/docs tips could skip pending fix commits. Also treat RELEASE_DRY as dry-run only when it is explicitly "true". Co-authored-by: Kent C. Dodds --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e8a47e9..b84782a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,9 @@ jobs: steps: - name: ⬇️ Checkout repo uses: actions/checkout@v4 + with: + # semantic-release needs full history + tags to see unreleased commits + fetch-depth: 0 - name: ♻️ Restore node_modules uses: actions/cache/restore@v4 with: @@ -85,7 +88,8 @@ jobs: - name: 🚀 Release uses: ph-fritsche/action-release@v2 with: - dry: ${{ vars.RELEASE_DRY }} + # Only treat an explicit "true" as dry-run (unset/false publishes) + dry: ${{ vars.RELEASE_DRY == 'true' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}