mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-11-16 23:09:03 +00:00
Lint and build in same step
The node modules are too large to persist between stages
This commit is contained in:
parent
2221a14f7a
commit
68a05ca0e6
1 changed files with 1 additions and 8 deletions
|
@ -1,6 +1,5 @@
|
|||
stages:
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
build:
|
||||
|
@ -15,19 +14,13 @@ build:
|
|||
- npm ci --cache .npm --prefer-offline
|
||||
script:
|
||||
- npm run build
|
||||
- npm run prettier
|
||||
artifacts:
|
||||
name: "$CI_JOB_ID"
|
||||
paths:
|
||||
- ./node_modules
|
||||
- ./public
|
||||
expire_in: 30 mins
|
||||
|
||||
prettier:
|
||||
image: node:slim
|
||||
stage: test
|
||||
script:
|
||||
- npm run prettier
|
||||
|
||||
deploy:
|
||||
image: dokku/ci-docker-image:latest
|
||||
stage: deploy
|
||||
|
|
Loading…
Reference in a new issue