Skip to content

Commit aa20883

Browse files
WesSouzaarturbien
authored andcommitted
chore: replace npm with yarn v1
1 parent 1fda05a commit aa20883

File tree

3 files changed

+16397
-117189
lines changed

3 files changed

+16397
-117189
lines changed

.circleci/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
- checkout
99
- restore_cache:
1010
keys:
11-
- v1-npm-deps-{{ checksum "package-lock.json" }}
12-
- v1-npm-deps-
11+
- v1-yarn-deps-{{ checksum "yarn.lock" }}
12+
- v1-yarn-deps-
1313
- run:
1414
name: 'Install dependencies'
15-
command: npm ci
15+
command: yarn install --ignore-optional --frozen-lockfile
1616
- save_cache:
17-
key: v1-npm-deps-{{ checksum "package-lock.json" }}
17+
key: v1-yarn-deps-{{ checksum "yarn.lock" }}
1818
paths:
1919
- node_modules
2020
- persist_to_workspace:
@@ -31,7 +31,7 @@ jobs:
3131
at: ~/repo
3232
- run:
3333
name: 'Tests'
34-
command: npm run test:ci
34+
command: yarn run test:ci
3535
build-library:
3636
docker:
3737
- image: 'circleci/node:lts'
@@ -42,7 +42,7 @@ jobs:
4242
at: ~/repo
4343
- run:
4444
name: 'Build library'
45-
command: npm run build
45+
command: yarn run build
4646
- persist_to_workspace:
4747
root: ~/repo
4848
paths:
@@ -57,7 +57,7 @@ jobs:
5757
at: ~/repo
5858
- run:
5959
name: 'Build Storybook'
60-
command: npm run build:storybook
60+
command: yarn run build:storybook
6161
- persist_to_workspace:
6262
root: ~/repo
6363
paths:
@@ -72,7 +72,7 @@ jobs:
7272
at: ~/repo
7373
- run:
7474
name: 'Deploy via Semantic Release'
75-
command: npm run semantic-release || true
75+
command: yarn run semantic-release || true
7676
deploy-storybook:
7777
docker:
7878
- image: 'circleci/node:lts'

0 commit comments

Comments
 (0)