diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 5476255..c395df9 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dfeb403..684422b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index fbb8e6c..810c83e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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