Skip to content

Commit

Permalink
chore(repo): replace manual package cache with orb (#9842)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Apr 14, 2022
1 parent e1f64a3 commit e54eccb
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version: 2.1
# -------------------------
orbs:
nx: nrwl/nx@1.4.0
node: circleci/node@5.0.2

# -------------------------
# DEFAULTS
Expand Down Expand Up @@ -45,25 +46,6 @@ executors:
# COMMANDS
# -------------------------
commands:
run-yarn-install:
parameters:
os:
type: string
steps:
- restore_cache:
name: Restore Yarn Package Cache
keys:
- nrwl-nx-yarn-packages-<< parameters.os >>-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn install --prefer-offline --frozen-lockfile --non-interactive --cache-folder ~/.cache/yarn
- save_cache:
name: Save Yarn Package Cache
key: nrwl-nx-yarn-packages-<< parameters.os >>-{{ checksum "yarn.lock" }}
paths:
- node_modules
- ~/.cache/yarn

install-pnpm:
steps:
- run:
Expand Down Expand Up @@ -98,8 +80,9 @@ commands:
- /usr/local/Homebrew
- ~/Library/Caches/Homebrew

- run-yarn-install:
os: << parameters.os >>
- node/install-packages:
pkg-manager: yarn
include-branch-in-cache-key: false
- when:
condition:
equal: [<< parameters.os >>, linux]
Expand Down

1 comment on commit e54eccb

@vercel
Copy link

@vercel vercel bot commented on e54eccb Apr 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev

Please sign in to comment.