You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
version: 2.1
|
|
jobs:
|
|
install-dependencies:
|
|
docker:
|
|
- image: circleci/node:dubnium-browsers
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
|
|
- dependencies-
|
|
- run: yarn global add node-gyp && yarn install
|
|
- save_cache:
|
|
paths:
|
|
- node_modules
|
|
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
|
|
build:
|
|
docker:
|
|
- image: circleci/node:dubnium-browsers
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
|
|
- dependencies-
|
|
- run: yarn build
|
|
- run:
|
|
name: Copy deployment artifacts to workspace
|
|
command: |
|
|
cp dist/ /tmp/dist -r
|
|
- store_artifacts:
|
|
path: /tmp/dist
|
|
- persist_to_workspace:
|
|
root: /tmp
|
|
paths:
|
|
- dist
|
|
workflows:
|
|
version: 2.1
|
|
build-deploy_frontend:
|
|
jobs:
|
|
- install-dependencies
|
|
- build:
|
|
requires:
|
|
- install-dependencies
|