mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-09-02 09:25:59 +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:
|
with:
|
||||||
go-version: "1.24"
|
go-version: "1.24"
|
||||||
- name: git cleanup
|
- 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
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user