From 912bd0b3cef28651979d54f7d85e3b6db5c7a593 Mon Sep 17 00:00:00 2001 From: s60171909 Date: Thu, 12 Oct 2023 10:10:34 +0900 Subject: [PATCH 1/3] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a10de5d..05773c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -- GitLab From 784ec8711b4bcd897f141a08c35416b99c2bcd33 Mon Sep 17 00:00:00 2001 From: s60171909 Date: Thu, 12 Oct 2023 10:17:18 +0900 Subject: [PATCH 2/3] Revert --- .gitlab-ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05773c8..26bf3c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: @@ -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 -- GitLab From 56e8922768ea3c6663b6dcf82c39539f240fa278 Mon Sep 17 00:00:00 2001 From: s60171909 <31-s60171909@biblio19.net> Date: Thu, 12 Oct 2023 13:40:35 +0900 Subject: [PATCH 3/3] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26bf3c7..671ce83 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,15 +19,15 @@ cache: before_script: # define cache dir & use it npm! - - npm ci --cache node_modules/ --prefer-offline + - npm ci --cache node_modules/ --prefer-offline # # monorepo users: run secondary install actions # - npx lerna bootstrap -- --cache .npm/ --prefer-offline + - npm run build build: stage: build # global cache settings are inherited to grab `node_modules` - script: - - npm run build + script: - npm run lint artifacts: paths: @@ -38,7 +38,7 @@ pages: when: on_success # only if previous stages' jobs all succeeded # override inherited cache settings since node_modules is not needed script: - mv dist public + - mv dist public artifacts: paths: - public -- GitLab