Skip to content

Commit 99f1048

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

File tree

5 files changed

+16286
-11858
lines changed

5 files changed

+16286
-11858
lines changed

.github/workflows/ci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
with:
8080
node-version: "18"
8181

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

@@ -96,6 +99,9 @@ jobs:
9699
with:
97100
node-version: "18"
98101

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

@@ -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)