Move out of before_script

This commit is contained in:
MSWS
2023-04-12 18:24:34 -07:00
parent 578a77fe85
commit 6f5f8ad75c
2 changed files with 2 additions and 5 deletions

View File

@@ -10,14 +10,12 @@ cache:
paths:
- node_modules/
before_script:
- npm install
- npm run lint
build:
image: node:latest
stage: build
script:
- npm install
- npm run lint
- npm run build
artifacts:
untracked: false

View File

@@ -4,7 +4,6 @@ WORKDIR /dsbot
COPY package*.json ./
RUN apt-get update && apt-get install -y npm
RUN npm install
COPY . .