From c4d4db9e68b0acd572d5976fdb1173b13dc9d87b Mon Sep 17 00:00:00 2001 From: Andrei Pohilko Date: Wed, 13 Nov 2024 11:10:02 +0000 Subject: [PATCH] Fix release scripts --- .github/workflows/build.yml | 2 +- .github/workflows/release.yaml | 19 ++++++++++++++++--- charts/helm-dashboard/Chart.yaml | 2 +- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6cca30d..0462cbbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: version: "1.18.2" - args: release --snapshot --rm-dist + args: release --snapshot --clean - name: Test if the Binary is Runnable run: "dist/helm-dashboard_linux_amd64_v1/helm-dashboard --help" - uses: actions/upload-artifact@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f2343219..d2b43dcb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: release +name: Release on: push: @@ -30,8 +30,21 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + + # Node part + - name: Setup Node.js environment + uses: actions/setup-node@v2.5.2 with: - fetch-depth: 0 + cache: 'npm' + cache-dependency-path: frontend/package-lock.json + - name: NPM install + run: npm i + working-directory: ./frontend + - name: NPM build + run: npm run build + working-directory: ./frontend + + # Golang part - name: Set up Go uses: actions/setup-go@v5 with: @@ -42,7 +55,7 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: version: "1.18.2" - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Test Binary Versions diff --git a/charts/helm-dashboard/Chart.yaml b/charts/helm-dashboard/Chart.yaml index 36d87d72..0f19ac1f 100644 --- a/charts/helm-dashboard/Chart.yaml +++ b/charts/helm-dashboard/Chart.yaml @@ -3,7 +3,7 @@ type: application name: helm-dashboard description: A GUI Dashboard for Helm by Komodor -icon: "https://raw.githubusercontent.com/komodorio/helm-dashboard/main/images/logo.svg" +icon: "https://raw.githubusercontent.com/komodorio/helm-dashboard/refs/heads/main/images/logo.svg" version: 2.0.1 appVersion: "1.3.3"