Skip to content

Commit 67f0da8

Browse files
committed
⬆️ 👷 Upgrade Yarn in CircleCI image
1 parent 3449a85 commit 67f0da8

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.circleci/config.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
version: 2.1
22

3-
jobs:
3+
commands:
4+
upgrade-and-run-yarn:
5+
steps:
6+
- run:
7+
name: Upgrade and run Yarn
8+
command: |
9+
npm install -g corepack
10+
yarn set version 4.9.1
11+
yarn
412
13+
jobs:
514
build-macos:
615
macos:
716
xcode: 16.2.0
@@ -25,8 +34,7 @@ jobs:
2534
echo 'source $NVM_DIR/nvm.sh' >> $BASH_ENV
2635
echo 'nvm install ${NODE_VERSION}' >> $BASH_ENV
2736
echo 'nvm alias default ${NODE_VERSION}' >> $BASH_ENV
28-
- run:
29-
command: yarn && yarn run link
37+
- upgrade-and-run-yarn
3038
- run:
3139
command: |
3240
export NODE_ENV=$([ "${CIRCLE_BRANCH}" == "main" ] && echo "production" || echo "development")
@@ -45,8 +53,7 @@ jobs:
4553
BASH_ENV: ".circleci/bashrc"
4654
steps:
4755
- checkout
48-
- run:
49-
command: yarn && yarn run link
56+
- upgrade-and-run-yarn
5057
- run:
5158
command: |
5259
export NODE_ENV=$([ "${CIRCLE_BRANCH}" == "main" ] && echo "production" || echo "development")
@@ -65,8 +72,7 @@ jobs:
6572
BASH_ENV: ".circleci/bashrc"
6673
steps:
6774
- checkout
68-
- run:
69-
command: yarn && yarn run link
75+
- upgrade-and-run-yarn
7076
- run:
7177
command: |
7278
export NODE_ENV=$([ "${CIRCLE_BRANCH}" == "main" ] && echo "production" || echo "development")

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodeLinker: node-modules
1+
nodeLinker: node-modules

0 commit comments

Comments
 (0)