Globally install corepack (#34406)

This commit is contained in:
Trivikram Kamat
2026-05-07 10:43:15 +00:00
committed by GitHub
parent 9c8e1855a5
commit 27e90864ac
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ runs:
# The following is needed because we can not use `cache: true` for `setup-node`, as it does not support Corepack yet and mess up with the cache location if ran after Node is installed
- name: Enable corepack
shell: bash
run: corepack enable
run: npm i -g corepack
- name: Get yarn cache directory path
id: yarn-cache-dir-path
+1 -1
View File
@@ -342,7 +342,7 @@ COPY --from=node /usr/local/lib /usr/local/lib
RUN \
# Configure Corepack
rm /usr/local/bin/yarn*; \
corepack enable; \
npm i -g corepack; \
corepack prepare --activate;
# hadolint ignore=DL3008
Vendored
+1 -1
View File
@@ -115,7 +115,7 @@ gem install bundler foreman
bundle install
# Install node modules
sudo corepack enable
sudo npm i -g corepack
corepack prepare
yarn install
+1 -1
View File
@@ -18,7 +18,7 @@ FileUtils.chdir APP_ROOT do
system('bundle check') || system!('bundle install')
puts "\n== Installing JS dependencies =="
system! 'corepack enable'
system! 'npm i -g corepack'
system! 'bin/yarn install --immutable'
puts "\n== Preparing database =="
+1 -1
View File
@@ -95,7 +95,7 @@ RUN \
--mount=type=cache,id=yarn-cache-${TARGETPLATFORM},target=/usr/local/share/.cache/yarn,sharing=locked \
# Configure Corepack
rm /usr/local/bin/yarn*; \
corepack enable; \
npm i -g corepack; \
corepack prepare --activate;
RUN \