mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Release: fix running pre/post release scripts in windows
- also fix tagging the release in the dist repo Closes gh-5517
This commit is contained in:
parent
862e7a1882
commit
5518b2da18
@ -8,11 +8,12 @@ if ( !blogURL || !blogURL.startsWith( "https://blog.jquery.com/" ) ) {
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
hooks: {
|
hooks: {
|
||||||
"before:init": "./build/release/pre-release.sh",
|
"before:init": "bash ./build/release/pre-release.sh",
|
||||||
"before:git:release": "git add -f dist/ dist-module/ changelog.md",
|
"before:git:release": "git add -f dist/ dist-module/ changelog.md",
|
||||||
"after:version:bump":
|
"after:version:bump":
|
||||||
"sed -i 's/main/AUTHORS.txt/${version}/AUTHORS.txt/' package.json",
|
"sed -i 's/main\\/AUTHORS.txt/${version}\\/AUTHORS.txt/' package.json",
|
||||||
"after:release": `./build/release/post-release.sh \${version} ${ blogURL }`
|
"after:release":
|
||||||
|
`bash ./build/release/post-release.sh \${version} ${ blogURL }`
|
||||||
},
|
},
|
||||||
git: {
|
git: {
|
||||||
changelog: "npm run release:changelog -- ${from} ${to}",
|
changelog: "npm run release:changelog -- ${from} ${to}",
|
||||||
|
@ -33,7 +33,9 @@ cd -
|
|||||||
npm run release:dist $1 $2
|
npm run release:dist $1 $2
|
||||||
cd $dist
|
cd $dist
|
||||||
git add -A
|
git add -A
|
||||||
npm version $1
|
git commit -m "Release: $1"
|
||||||
|
# -s to sign and annotate tag (recommended for releases)
|
||||||
|
git tag -s $1 -m "Release: $1"
|
||||||
|
|
||||||
# Wait for confirmation from user to push changes to dist repo
|
# Wait for confirmation from user to push changes to dist repo
|
||||||
read -p "Press enter to push changes to dist repo"
|
read -p "Press enter to push changes to dist repo"
|
||||||
|
@ -2,11 +2,17 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Cleans all release and build artifacts
|
# Install dependencies
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
# Clean all release and build artifacts
|
||||||
npm run build:clean
|
npm run build:clean
|
||||||
npm run release:clean
|
npm run release:clean
|
||||||
npm ci
|
|
||||||
|
# Check authors
|
||||||
npm run authors:check
|
npm run authors:check
|
||||||
|
|
||||||
|
# Run tests
|
||||||
npm test
|
npm test
|
||||||
|
|
||||||
# Clone dist and cdn repos to the tmp/release directory
|
# Clone dist and cdn repos to the tmp/release directory
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
"babel:tests": "babel test/data/core/jquery-iterability-transpiled-es6.js --out-file test/data/core/jquery-iterability-transpiled.js",
|
"babel:tests": "babel test/data/core/jquery-iterability-transpiled-es6.js --out-file test/data/core/jquery-iterability-transpiled.js",
|
||||||
"build": "node ./build/command.js",
|
"build": "node ./build/command.js",
|
||||||
"build:all": "node -e \"(async () => { const { buildDefaultFiles } = await import('./build/tasks/build.js'); buildDefaultFiles() })()\"",
|
"build:all": "node -e \"(async () => { const { buildDefaultFiles } = await import('./build/tasks/build.js'); buildDefaultFiles() })()\"",
|
||||||
"build:clean": "rimraf dist/*.{js,map} dist-module/*.{js,map}",
|
"build:clean": "rimraf --glob dist/*.{js,map} --glob dist-module/*.{js,map}",
|
||||||
"build:main": "node -e \"(async () => { const { build } = await import('./build/tasks/build.js'); build() })()\"",
|
"build:main": "node -e \"(async () => { const { build } = await import('./build/tasks/build.js'); build() })()\"",
|
||||||
"lint:dev": "eslint --cache .",
|
"lint:dev": "eslint --cache .",
|
||||||
"lint:json": "jsonlint --quiet package.json",
|
"lint:json": "jsonlint --quiet package.json",
|
||||||
|
Loading…
Reference in New Issue
Block a user