Skip to content

Commit

Permalink
Use circleci/node orb for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovalov committed Oct 1, 2020
1 parent dc772d1 commit d0998e6
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ executors:
- image: circleci/node:12
environment:
CI: true
working_directory: ~/mobx-state-tree

orbs:
node: circleci/[email protected]

jobs:
# mobx-state-tree and mst-middlewares build
Expand All @@ -15,29 +17,8 @@ jobs:
steps:
- checkout

- restore_cache:
name: restore .cache/yarn
keys:
- yarn-cache-{{ arch }}
- restore_cache:
name: restore node_modules
keys:
- node-modules-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- node-modules-{{ arch }}-{{ .Branch }}
- node-modules-{{ arch }}

- run: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn

- save_cache:
name: cache .cache/yarn
key: yarn-cache-{{ arch }}
paths:
- ~/.cache/yarn
- save_cache:
name: cache node_modules
key: node-modules-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
- node/install-packages:
pkg-manager: yarn

- run: yarn build

Expand Down

0 comments on commit d0998e6

Please sign in to comment.