20 lines
488 B
YAML
20 lines
488 B
YAML
image: node:latest
|
|
|
|
pages:
|
|
before_script:
|
|
# Install yarn as outlined in (https://yarnpkg.com/lang/en/docs/install/#alternatives-stable)
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
# Make available in the current terminal
|
|
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
|
script:
|
|
- yarn install
|
|
- yarn build
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- main
|
|
cache:
|
|
paths:
|
|
- .yarn
|
|
- node_modules/ |