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.
This commit is contained in:
Andrey Pokhilko
2026-08-10 15:07:12 +01:00
committed by GitHub
parent ec69841284
commit bb2163b5d2
+4 -1
View File
@@ -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: