mirror of
https://github.com/jquery/jquery.git
synced 2026-01-10 12:48:17 -05:00
Changes:
* Run `pre-release.sh` & `post-release.sh` scripts directly; make them
executable
* Fix the hashbang to specify the default bash installation; note: `/bin/bash`
would be a wrong choice as that would use an ancient 3.x version on macOS
* Make sure Bash 5 or newer is used
* Run `npm publish --tag beta` when a pre-release is being published
* Fix the `repository.url` field in `package.json` as reported by `npm publish`
* Fix a few issues reported by shellcheck
Closes gh-5697
(cherry picked from commit a5b0c4318d)
29 lines
678 B
Bash
Executable File
29 lines
678 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if (( $(echo "$BASH_VERSION" | cut -f1 -d.) < 5 )); then
|
|
echo "Bash 5 or newer required. If you're on macOS, the built-in Bash is too old; install a newer one from Homebrew."
|
|
exit 1
|
|
fi
|
|
|
|
# Install dependencies
|
|
npm ci
|
|
|
|
# Clean all release and build artifacts
|
|
npm run build:clean
|
|
npm run release:clean
|
|
|
|
# Check authors
|
|
npm run authors:check
|
|
|
|
# Run browserless tests
|
|
npm run build:all
|
|
npm run lint
|
|
npm run test:browserless
|
|
|
|
# Clone dist and cdn repos to the tmp/release directory
|
|
mkdir -p tmp/release
|
|
git clone https://github.com/jquery/jquery-dist tmp/release/dist
|
|
git clone https://github.com/jquery/codeorigin.jquery.com tmp/release/cdn
|