Skip to content

Commit b166688

Browse files
committed
Fix GoReleaser v2 syntax errors
1 parent a6c5686 commit b166688

3 files changed

Lines changed: 12 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
- name: Set up Node
199199
uses: actions/setup-node@v4
200200
with:
201-
node-version: '20.x'
201+
node-version: '22.x'
202202
cache: 'npm'
203203
cache-dependency-path: 'qpi-ui/internal/dashboard/package-lock.json'
204204

@@ -320,14 +320,14 @@ jobs:
320320
- name: Set up Node.js
321321
uses: actions/setup-node@v4
322322
with:
323-
node-version: '20'
323+
node-version: '22'
324324

325325
# Installs wixl (msitools) onto Ubuntu to compile the .msi package natively
326326
- name: Install MSI Packing Tooling
327327
run: sudo apt-get update && sudo apt-get install -y msitools
328328

329329
- name: Run GoReleaser
330-
uses: goreleaser/goreleaser-action@v6
330+
uses: goreleaser/goreleaser-action@v7
331331
with:
332332
distribution: goreleaser
333333
version: latest

qpi-ui/pkg/.goreleaser.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ project_name: qpi
44

55
before:
66
hooks:
7-
- dir: qpi-ui/internal/dashboard
8-
cmd: npm ci
9-
env:
10-
- CYPRESS_INSTALL_BINARY=0
11-
- dir: qpi-ui/internal/dashboard
12-
cmd: npm run build
7+
- sh -c 'cd qpi-ui/internal/dashboard && CYPRESS_INSTALL_BINARY=0 npm ci'
8+
- sh -c 'cd qpi-ui/internal/dashboard && npm run build'
139
- go mod tidy
1410

1511
builds:
@@ -62,8 +58,12 @@ nfpms:
6258
- rpm # Fedora, RHEL, CentOS, Rocky Linux, openSUSE
6359
- apk # Alpine Linux (Note: Alpine uses OpenRC, not systemd, by default)
6460

65-
dependencies:
66-
- systemd: [deb, rpm]
61+
deb:
62+
depends:
63+
- systemd
64+
rpm:
65+
depends:
66+
- systemd
6767

6868
contents:
6969
- dst: /usr/local/bin/qpi
@@ -85,5 +85,5 @@ nfpms:
8585
# Life-cycle execution hooks for starting and updating the service
8686
scripts:
8787
postinstall: qpi-ui/pkg/postinstall.sh
88-
prerm: qpi-ui/pkg/prerm.sh
88+
preremove: qpi-ui/pkg/preremove.sh
8989
postremove: qpi-ui/pkg/postremove.sh

qpi-ui/pkg/prerm.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)