Build: Update CI actions to use npm ci

This commit is contained in:
Ralph Slooten
2026-05-06 15:41:01 +12:00
parent 4bdbeebcc0
commit ec2a0851ab
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ jobs:
node-version: 22
cache: 'npm'
- run: echo "Building assets for ${{ github.ref_name }}"
- run: npm install
- run: npm ci
- run: npm run package
# build the binaries

View File

@@ -44,7 +44,7 @@ jobs:
cache: 'npm'
- name: Install JavaScript dependencies
if: startsWith(matrix.os, 'ubuntu') == true
run: npm install
run: npm ci
- name: Run JavaScript linting
if: startsWith(matrix.os, 'ubuntu') == true
run: npm run lint

View File

@@ -7,7 +7,7 @@ COPY . /app
WORKDIR /app
RUN apk upgrade && apk add git npm && \
npm install && npm run package && \
npm ci && npm run package && \
CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/axllent/mailpit/config.Version=${VERSION}" -o /mailpit
FROM alpine:latest