From 6e837d53c6eb7c2c02275fbb57153924447cd029 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 2 Oct 2023 00:58:34 +0000 Subject: [PATCH] docs(ci): comment --- .gitlab-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 452fc7d..40f1f61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,13 @@ image: node:alpine # Use latest version of Node.js on Alpine -cache: # add cache to 'node_modules' for speeding up builds +cache: paths: - - node_modules/ # Node modules and dependencies + - node_modules/ variables: NODE_ENV: "production" -## Rename to 'pages' for gitlab pages +# Rename to 'pages' for gitlab pages build: stage: build @@ -16,7 +16,8 @@ build: - npm install script: - - npm run build # Generate site + # Generate site + - npm run build rules: # Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job @@ -32,7 +33,8 @@ test: stage: test script: - - sh check-homepage.sh # Homepage should exists and non-empty + # Homepage should exist and non-empty + - sh check-homepage.sh rules: - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")' @@ -79,7 +81,8 @@ deploy_pages: - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")' when: always -renovate: # Check dependency update +# Check dependency update +renovate: before_script: - apk update && apk add git - npm install