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

GH-44585: [JS][Release] Skip bin dir in npm-release.sh #44861

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions js/npm-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ yarn gulp

read -p "Please enter your npm 2FA one-time password (or leave empty if you don't have 2FA enabled): " NPM_OTP </dev/tty

# publish the JS target modules to npm
find targets -type f -name package.json -execdir sh -c \
# collect targets by finding package.json files
# skips any in a bin dir, see GH-44585
find targets -type f -name package.json ! -path "*/bin/*" -execdir sh -c \
"npm publish \$(dirname \$(realpath {})) ${NPM_OTP:+ --otp=$NPM_OTP}" \;
Loading