Loading .gitlab-ci.yml +8 −3 Original line number Diff line number Diff line Loading @@ -17,11 +17,17 @@ cache: - node_modules/ policy: pull # prevent subsequent 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 build: stage: build # global cache settings are inherited to grab `node_modules` script: - npm ci --cache node_modules/ --prefer-offline - npm run build - npm run lint artifacts: paths: Loading @@ -32,8 +38,7 @@ pages: when: on_success # only if previous stages' jobs all succeeded # override inherited cache settings since node_modules is not needed script: - echo 'Pages deployment job' - mv dist public mv dist public artifacts: paths: - public Loading Loading
.gitlab-ci.yml +8 −3 Original line number Diff line number Diff line Loading @@ -17,11 +17,17 @@ cache: - node_modules/ policy: pull # prevent subsequent 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 build: stage: build # global cache settings are inherited to grab `node_modules` script: - npm ci --cache node_modules/ --prefer-offline - npm run build - npm run lint artifacts: paths: Loading @@ -32,8 +38,7 @@ pages: when: on_success # only if previous stages' jobs all succeeded # override inherited cache settings since node_modules is not needed script: - echo 'Pages deployment job' - mv dist public mv dist public artifacts: paths: - public Loading