forked from fazouane-marouane/github-release-downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
30 lines (30 loc) · 871 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: 2
jobs:
build:
working_directory: ~/practical
docker:
- image: darkmarouane/docker-build:0.0.5
steps:
- checkout
- run:
name: version
command: node --version && npm --version && yarn --version
- run:
name: generating a whitespaces-free lockfile
command: tr -d ' \t\n\r\f' < yarn.lock > ci-cache-key
- restore_cache:
key: dependency-cache-{{ checksum "ci-cache-key" }}
- run:
name: yarn-install
command: |
export NODE_ENV="development"
yarn install --frozen-lockfile
- run:
name: build
command: |
export NODE_ENV="production"
yarn run build
- save_cache:
key: dependency-cache-{{ checksum "ci-cache-key" }}
paths:
- ./node_modules