Skip to content

Commit

Permalink
Run npm@6
Browse files Browse the repository at this point in the history
  • Loading branch information
lennym committed Aug 1, 2018
1 parent 059a27c commit a0f2017
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .drone.yml
Expand Up @@ -5,7 +5,8 @@ pipeline:
secrets:
- npm_auth_token
commands:
- npm install
- npm install -g npm@6
- npm ci
- npm test
when:
event: [push, pull_request, tag]
Expand All @@ -15,6 +16,7 @@ pipeline:
secrets:
- npm_auth_token
commands:
- npm install -g npm@6
- npx @lennym/ciaudit
when:
event: [push, pull_request, tag]
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Expand Up @@ -3,10 +3,12 @@ FROM quay.io/ukhomeofficedigital/nodejs-base:v8
ARG NPM_AUTH_USERNAME
ARG NPM_AUTH_TOKEN

RUN npm install -g npm@6

COPY .npmrc /app/.npmrc
COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json
RUN npm install --production --no-optional
RUN npm ci --production --no-optional
COPY . /app

RUN rm /app/.npmrc
Expand Down

0 comments on commit a0f2017

Please sign in to comment.