Skip to content

Commit f4475b6

Browse files
committed
fix: ci with yarn3
1 parent db83c9c commit f4475b6

File tree

4 files changed

+22152
-16452
lines changed

4 files changed

+22152
-16452
lines changed

.circleci/config.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,24 @@ aliases:
99
- &attach-work-dir
1010
at: ~/app/
1111

12+
# Cache Management
13+
- &restore_node_modules
14+
keys:
15+
- v2.8-node-modules-{{ arch }}-{{ checksum "yarn.lock" }}
16+
17+
- &save_node_modules
18+
key: v2.8-node-modules-{{ arch }}-{{ checksum "yarn.lock" }}
19+
paths:
20+
- .yarn/cache
21+
- node_modules
22+
- src/plugin/node_modules
23+
- src/frontend/node_modules
24+
1225
# Dependencies
1326
- &yarn
1427
name: Run Yarn
1528
command: |
16-
yarn install --non-interactive --cache-folder ~/.cache/yarn
29+
yarn install --immutable
1730
1831
defaults: &defaults
1932
working_directory: ~/app
@@ -31,8 +44,10 @@ jobs:
3144
steps:
3245
- checkout
3346

47+
- restore_cache: *restore_node_modules
3448
- run: *yarn
3549

50+
- save_cache: *save_node_modules
3651
- persist-to-workspace: *persist-work-dir
3752

3853
lint:

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@algolia/algoliasearch-netlify-frontend",
33
"version": "1.0.14",
4-
"private": false,
54
"author": "Algolia Team <[email protected]>",
65
"license": "MIT",
76
"repository": "https://github.com/algolia/algoliasearch-netlify.git",

plugin/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@algolia/netlify-plugin-crawler",
33
"version": "1.0.14",
4-
"private": false,
54
"author": "Algolia Team <[email protected]>",
65
"license": "MIT",
76
"repository": "https://github.com/algolia/algoliasearch-netlify.git",

0 commit comments

Comments
 (0)