Newer
Older
build:
stage: build
paths:
- .yarn-cache/
before_script:
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
- echo 'yarn-offline-mirror-pruning true' >> .yarnrc
- echo "Environment variables:"
- printenv
- echo "Node version:"
- node -v
- echo "npm version:"
- npm -v
- echo "Installed packages:"
- yarn list
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
pages:
stage: build
cache:
- key:
files:
- yarn.lock
paths:
- .yarn-cache/
before_script:
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
- echo 'yarn-offline-mirror-pruning true' >> .yarnrc
- mv dist public #Ensure the output directory is renamed to public
- echo '/* /index.html 200' > public/_redirects #original
artifacts:
paths:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH