.gitlab-ci.yml 456 Bytes
Newer Older
1
default:
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  tags: [docker]
  image: node:14
  retry: 2
  interruptible: true

stages:
  - test
  - deploy

lint:
  stage: test
  before_script:
    - node --version
    - npm --version
    - npm install
  script:
    - npm run lint
  artifacts:
    name: "node_modules"
    expires: 1 day
    path:
      - node_modules/

pages:
  stage: deploy
  needs: [node_modules]
  script:
    - npm run build
  artifacts:
    name: "public"
    path:
      - public/