summaryrefslogtreecommitdiffstats
path: root/build/release/pre-release.sh
blob: f469b0da05e2b5d51e230dfcd38b083d9343fea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -euo pipefail

# 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 tests
npm test

# 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