Skip to content

Commit 24dec19

Browse files
authored
Update yarn to current latest in 1.22.x series (#6858)
* Update yarn to current latest in 1.22.x series * Use an environment variable for the yarn version As suggested by @lucydodo: #6858 (comment) Thanks heaps. :)
1 parent 82d88ed commit 24dec19

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.ci/Dockerfile.cypress

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR $APP
55

66
COPY package.json yarn.lock .yarnrc $APP/
77
COPY viz-lib $APP/viz-lib
8-
RUN npm install yarn@1.22.19 -g && yarn --frozen-lockfile --network-concurrency 1 > /dev/null
8+
RUN npm install yarn@1.22.22 -g && yarn --frozen-lockfile --network-concurrency 1 > /dev/null
99

1010
COPY . $APP
1111

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- master
99
env:
1010
NODE_VERSION: 18
11+
YARN_VERSION: 1.22.22
1112
jobs:
1213
backend-lint:
1314
runs-on: ubuntu-22.04
@@ -88,7 +89,7 @@ jobs:
8889
cache: 'yarn'
8990
- name: Install Dependencies
9091
run: |
91-
npm install --global --force yarn@1.22.19
92+
npm install --global --force yarn@$YARN_VERSION
9293
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
9394
- name: Run Lint
9495
run: yarn lint:ci
@@ -115,7 +116,7 @@ jobs:
115116
cache: 'yarn'
116117
- name: Install Dependencies
117118
run: |
118-
npm install --global --force yarn@1.22.19
119+
npm install --global --force yarn@$YARN_VERSION
119120
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
120121
- name: Run App Tests
121122
run: yarn test
@@ -152,7 +153,7 @@ jobs:
152153
echo "CODE_COVERAGE=true" >> "$GITHUB_ENV"
153154
- name: Install Dependencies
154155
run: |
155-
npm install --global --force yarn@1.22.19
156+
npm install --global --force yarn@$YARN_VERSION
156157
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
157158
- name: Setup Redash Server
158159
run: |

.github/workflows/preview-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Install Dependencies
4848
run: |
49-
npm install --global --force yarn@1.22.19
49+
npm install --global --force yarn@1.22.22
5050
yarn cache clean && yarn --frozen-lockfile --network-concurrency 1
5151
5252
- name: Set up Docker Buildx

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:18-bookworm as frontend-builder
22

3-
RUN npm install --global --force yarn@1.22.19
3+
RUN npm install --global --force yarn@1.22.22
44

55
# Controls whether to build the frontend assets
66
ARG skip_frontend_build

0 commit comments

Comments
 (0)