Commit 912bd0b3 authored by JunHyung An's avatar JunHyung An
Browse files

Update .gitlab-ci.yml file

parent 88849f66
Loading
Loading
Loading
Loading
Loading
+4 −21
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ stages:
  - build
  - deploy


# global cache settings for all jobs
# Ensure compatibility with the install job
# goal: the install job loads the cache and
@@ -18,29 +17,12 @@ cache:
          - node_modules/
      policy: pull  # prevent subsequent jobs from modifying cache

#   # ATTN mono-repo users: with only additional node_modules, 
#   # add up to 2 additional cache entries. 
#   # See limitations in #10. 
#   - key:
#         files:
#             - core/pkg1/package-lock.json
#     paths:
#         - core/pkg1/node_modules/
#     policy: pull # prevent jobs from modifying cache

before_script:
    # define cache dir & use it npm!
    - npm ci --cache node_modules/ --prefer-offline
#   # monorepo users: run secondary install actions
#   - npx lerna bootstrap -- --cache .npm/ --prefer-offline
    - npm run lint 


build:
  stage: build
  # global cache settings are inherited to grab `node_modules`
  script:
    - npm run build
    - npm ci --cache node_modules/ --prefer-offline
    - npm run lint
  artifacts:
    paths:
      - dist/           # where ever your build results are stored
@@ -51,8 +33,9 @@ pages:
  # override inherited cache settings since node_modules is not needed
  script:
    - echo 'Pages deployment job'
    - mv dist public
  artifacts:
    paths:
      - dist
      - public
  rules:
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
 No newline at end of file