Skip to content
Snippets Groups Projects
Commit a64f5c50 authored by Yifeng Wang's avatar Yifeng Wang
Browse files

Update .gitlab-ci.yml file

parent cc8e0ba1
No related branches found
No related tags found
No related merge requests found
Pipeline #473520 failed
image: node:18.20.0-alpine
stages:
- build
image: node:18.20.0
build:
stage: build
cache:
key:
files:
- yarn.lock
paths:
- .yarn-cache/
policy: pull
- key:
files:
- yarn.lock
paths:
- .yarn-cache/
before_script:
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
- echo 'yarn-offline-mirror-pruning true' >> .yarnrc
- yarn install --frozen-lockfile
- yarn cache clean
- rm -rf node_modules/.cache
script:
- yarn build
rules:
......@@ -26,18 +20,15 @@ build:
pages:
stage: build
cache:
key:
files:
- yarn.lock
paths:
- .yarn-cache/
policy: pull
- key:
files:
- yarn.lock
paths:
- .yarn-cache/
before_script:
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
- echo 'yarn-offline-mirror-pruning true' >> .yarnrc
- yarn install --frozen-lockfile
- yarn cache clean
- rm -rf node_modules/.cache
script:
- yarn build
- cp -a dist/. public/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment