|
@@ -47,7 +47,7 @@ set -o xtrace
|
|
# Update README before publishing `uppy`
|
|
# Update README before publishing `uppy`
|
|
# So up-to-date contributors are shown on the npm page.
|
|
# So up-to-date contributors are shown on the npm page.
|
|
npm run contributors:save
|
|
npm run contributors:save
|
|
-git commit -m "Update contributors" README.md
|
|
|
|
|
|
+git add README.md
|
|
|
|
|
|
# Add readme file to the main `uppy` package.
|
|
# Add readme file to the main `uppy` package.
|
|
cp README.md packages/uppy/README.md
|
|
cp README.md packages/uppy/README.md
|
|
@@ -55,13 +55,16 @@ cp README.md packages/uppy/README.md
|
|
npm run clean
|
|
npm run clean
|
|
npm run build
|
|
npm run build
|
|
|
|
|
|
-lerna publish --message="Release" --exact
|
|
|
|
|
|
+git commit -m "Release"
|
|
|
|
+lerna version --amend --no-push --exact
|
|
|
|
|
|
# Replace version numbers in URLs
|
|
# Replace version numbers in URLs
|
|
version_files="./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/"
|
|
version_files="./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/"
|
|
main_package_version=$(node -p "require('./packages/uppy/package.json').version")
|
|
main_package_version=$(node -p "require('./packages/uppy/package.json').version")
|
|
replace-x -r 'uppy/v\d+\.\d+\.\d+/dist' "uppy/v$main_package_version/dist" $version_files --exclude=node_modules
|
|
replace-x -r 'uppy/v\d+\.\d+\.\d+/dist' "uppy/v$main_package_version/dist" $version_files --exclude=node_modules
|
|
-git commit -m "Change Uppy version references to v$main_package_version" $version_files
|
|
|
|
|
|
+git commit --amend --no-edit $version_files # add changes to the Release commit
|
|
|
|
|
|
-git push
|
|
|
|
-git push --tags
|
|
|
|
|
|
+lerna publish from-git
|
|
|
|
+
|
|
|
|
+# git push
|
|
|
|
+# git push --tags
|