diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-02-06 09:53:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 09:53:30 -0500 |
commit | b507c8648f701acd1c48b3c38054ad38d76fd1ca (patch) | |
tree | 086c67b05f822abbb65229a850d0be72fd80dd49 /build/release.js | |
parent | 63767650b5b171b4671304fd2bb2f2890431929f (diff) | |
download | jquery-b507c8648f701acd1c48b3c38054ad38d76fd1ca.tar.gz jquery-b507c8648f701acd1c48b3c38054ad38d76fd1ca.zip |
Release: use buildDefaultFiles directly and pass version
- also add the ability to pass VERSION in env to test final builds
- adjust sha regex to account for lack of shas
- set the version on the dist package.json
Close gh-5408
Diffstat (limited to 'build/release.js')
-rw-r--r-- | build/release.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build/release.js b/build/release.js index ff11d80cc..3cf4f31ab 100644 --- a/build/release.js +++ b/build/release.js @@ -24,6 +24,7 @@ module.exports = function( Release ) { ]; const cdn = require( "./release/cdn" ); const dist = require( "./release/dist" ); + const { buildDefaultFiles } = require( "./tasks/build" ); const npmTags = Release.npmTags; @@ -53,8 +54,8 @@ module.exports = function( Release ) { * committed before creating the tag. * @param {Function} callback */ - generateArtifacts: function( callback ) { - Release.exec( "npm run build:all" ); + generateArtifacts: async function( callback ) { + await buildDefaultFiles( { version: Release.newVersion } ); cdn.makeReleaseCopies( Release ); Release._setSrcVersion(); @@ -77,7 +78,7 @@ module.exports = function( Release ) { * Publish to distribution repo and npm * @param {Function} callback */ - dist: async callback => { + dist: async function( callback ) { await cdn.makeArchives( Release ); dist( Release, distFiles, callback ); } |