Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add corepack to the auto-updated dependencies #42090

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/tools.yml
Expand Up @@ -23,6 +23,9 @@ jobs:
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
./update-eslint.sh
fi
- id: corepack
run: |
make corepack-update
arcanis marked this conversation as resolved.
Show resolved Hide resolved
- id: lint-md-dependencies
run: |
cd tools/lint-md
Expand Down
12 changes: 7 additions & 5 deletions Makefile
Expand Up @@ -1119,13 +1119,15 @@ pkg: $(PKG)

.PHONY: corepack-update
corepack-update:
rm -rf /tmp/node-corepack-clone
git clone 'https://github.com/nodejs/corepack.git' /tmp/node-corepack-clone
cd /tmp/node-corepack-clone && yarn pack
rm -rf deps/corepack && mkdir -p deps/corepack
cd deps/corepack && tar xf /tmp/node-corepack-clone/package.tgz --strip-components=1
mkdir -p /tmp/node-corepack
wget -q "$$(npm view corepack dist.tarball)" -O /tmp/node-corepack/package.tgz
arcanis marked this conversation as resolved.
Show resolved Hide resolved

rm -rf deps/corepack && mkdir deps/corepack
cd deps/corepack && tar xf /tmp/node-corepack/package.tgz --strip-components=1
chmod +x deps/corepack/shims/*

node deps/corepack/dist/corepack.js --version

aduh95 marked this conversation as resolved.
Show resolved Hide resolved
.PHONY: pkg-upload
# Note: this is strictly for release builds on release machines only.
pkg-upload: pkg
Expand Down