Globally install corepack (#34406)
This commit is contained in:
2
.github/actions/setup-javascript/action.yml
vendored
2
.github/actions/setup-javascript/action.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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 =="
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user