Commit 98ce1b0a authored by JunHyung An's avatar JunHyung An
Browse files

Add .gitlab-ci.yml file

parent 7e57054c
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+35 −0
Original line number Diff line number Diff line
image: "node:lts-alpine"

stages:
  - deploy

cache:
  key:
    files:
      - package-lock.json
    prefix: npm
  paths:
    - node_modules/
  policy: pull

before_script:
  - npm ci --cache node_modules/ --prefer-offline

lint:
  stage: .pre
  script:
    - node --version
    - npm run format
    - npm run lint

pages:
  stage: deploy
  when: on_success
  script:
    - npm run build --base=$CI_PAGES_URL
    - cp -a dist/. public/
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 No newline at end of file