$ ./release.sh 2.1.0 - Create and checkout release branch: git checkout -b release/2.1.0 Switched to a new branch 'release/2.1.0' - Run build script: /var/www/html/js/build.sh Installing dependencies with yarn... yarn install v1.22.22 [1/4] Resolving packages... success Already up-to-date. Done in 0.25s. Building React app with yarn... yarn run v1.22.22 $ webpack --mode production asset static/js/main.js 1000 KiB [compared for emit] [minimized] [big] (name: main) 1 related asset asset static/js/785.main.js 115 KiB [compared for emit] [minimized] (id hint: vendors) asset static/js/400.main.js 6.23 KiB [compared for emit] [minimized] asset index.html 445 bytes [compared for emit] orphan modules 2.11 MiB [orphan] 363 modules runtime modules 7.29 KiB 12 modules javascript modules 1.76 MiB 379 modules json modules 1.52 KiB ./node_modules/character-entities-legacy/index.json 1.24 KiB [built] [code generated] ./node_modules/character-reference-invalid/index.json 289 bytes [built] [code generated] WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: static/js/main.js (1000 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: main (1000 KiB) static/js/main.js webpack 5.98.0 compiled with 2 warnings in 7947 ms Done in 8.34s. Build completed! - Force add build artifacts: git add --force js/react-app/build - Commit build artifacts: git commit -m 2.1.0 release [release/2.1.0 ed7fb65] 2.1.0 release 5 files changed, 43 insertions(+) create mode 100644 js/react-app/build/index.html create mode 100644 js/react-app/build/static/js/400.main.js create mode 100644 js/react-app/build/static/js/785.main.js create mode 100644 js/react-app/build/static/js/main.js create mode 100644 js/react-app/build/static/js/main.js.LICENSE.txt - Create tag: git tag -a 2.1.0 -m 2.1.0 - Checkout head branch: git checkout 2.0.x Switched to branch '2.0.x' - Delete release branch: git branch -D release/2.1.0 Deleted branch release/2.1.0 (was ed7fb65). - Restore build directory: git checkout 2.1.0 -- js/react-app/build Release process complete. - Created and checked out branch: release/2.1.0 - Ran build and committed build artifacts - Created tag: 2.1.0 - Returned to HEAD branch: 2.0.x - Deleted release branch: release/2.1.0 - Restored build directory - Validated build artifact Manual next steps: - Test the tag locally: git checkout 2.1.0 - Push the tag to remote: git push origin 2.1.0 - Create a Drupal.org release node for tag 2.1.0 Note: Once you checkout the release tag, when you return to a branch, Git will delete the build directory. To restore it, run: git checkout 2.1.0 -- js/react-app/build && git reset HEAD -- js/react-app/build