diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c82cf20..d846223 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,6 @@ name: Release +env: + HUSKY: "0" on: workflow_dispatch: repository_dispatch: @@ -11,7 +13,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: '16.x' - - run: npm ci + - run: npm ci --ignore-scripts - run: npm run lint - run: npm run test - name: Release diff --git a/Dockerfile b/Dockerfile index ecf1803..0b5eaaa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,13 @@ FROM node:lts-alpine EXPOSE 9171 -ENV NODE_ENV=production +ENV NODE_ENV=production HUSKY=0 WORKDIR /opt/github_exporter COPY . . -RUN apk add --no-cache tini && npm install --omit=dev --quiet --ignore-scripts +RUN apk add --no-cache tini && npm ci --omit=dev --quiet --ignore-scripts USER 1001