mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-08-29 15:49:46 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user