Skip to content

Commit 98cae8d

Browse files
committed
build(package): upgrade to yarn v4 (reanahub#420)
Closes reanahub#346
1 parent 48ea4c3 commit 98cae8d

File tree

5 files changed

+16290
-11862
lines changed

5 files changed

+16290
-11862
lines changed

.github/workflows/ci.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ jobs:
7979
with:
8080
node-version: "18"
8181

82-
- name: Install project dependencies
83-
run: yarn global add prettier
82+
- name: Enable corepack and set yarn version
83+
run: corepack enable && yarn set version 4.6.0
84+
85+
- name: Install prettier
86+
run: yarn add prettier
8487

8588
- name: Run prettier code formatter
8689
run: ./run-tests.sh --check-prettier
@@ -96,8 +99,11 @@ jobs:
9699
with:
97100
node-version: "18"
98101

99-
- name: Install project dependencies
100-
run: yarn global add eslint
102+
- name: Enable corepack and set yarn version
103+
run: corepack enable && yarn set version 4.6.0
104+
105+
- name: Install eslint
106+
run: yarn add eslint
101107

102108
- name: Run prettier code formatter
103109
run: ./run-tests.sh --check-lint
@@ -113,6 +119,9 @@ jobs:
113119
with:
114120
node-version: "18"
115121

122+
- name: Enable corepack and set yarn version
123+
run: corepack enable && yarn set version 4.6.0
124+
116125
- name: Install project dependencies
117126
run: yarn
118127

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ENV DEBIAN_FRONTEND=noninteractive
99
WORKDIR /code
1010
COPY . /code
1111

12+
RUN yarn set version 4.6.0
13+
1214
# Build frontend application
1315
# hadolint ignore=DL3003,DL3008
1416
RUN apt-get update -y && \

reana-ui/.yarnrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

reana-ui/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
"redux-thunk": "^2.3.0",
2626
"semantic-ui-react": "^2.0.0"
2727
},
28-
"resolutions": {
29-
"jsroot/gl/node-gyp": "<9.4.0"
30-
},
3128
"scripts": {
3229
"analyze": "source-map-explorer 'build/static/js/*.js'",
3330
"start": "craco start",
@@ -76,5 +73,6 @@
7673
"transformIgnorePatterns": [
7774
"node_modules/(?!axios)/"
7875
]
79-
}
76+
},
77+
"packageManager": "[email protected]"
8078
}

0 commit comments

Comments
 (0)