From bb2163b5d29eacc4f1b2695bfae091965d8e5774 Mon Sep 17 00:00:00 2001 From: Andrey Pokhilko Date: Mon, 10 Aug 2026 15:07:12 +0100 Subject: [PATCH] fix(ci): restore all tracked files before goreleaser (#741) npm i rewrites frontend/package-lock.json, which the old cleanup step did not restore, so goreleaser aborted on a dirty tree and no release was published. --- .github/workflows/release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index cefe1c7..6ef9bb0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,7 +50,10 @@ jobs: with: go-version: "1.24" - name: git cleanup - run: git clean -f && git checkout frontend/yarn.lock + # goreleaser refuses to run on a dirty tree. `npm i` rewrites both lockfiles, + # so restore everything tracked rather than yarn.lock alone. No -x, to keep + # the built pkg/frontend/dist that the binary embeds. + run: git checkout -- . && git clean -fd - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: