mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
26 lines
552 B
Bash
Executable File
26 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Force start from root folder
|
|
cd "$(dirname "$0")/.."
|
|
|
|
set -e
|
|
|
|
version=""
|
|
|
|
echo "Please enter the version you want to publish"
|
|
read -r version
|
|
|
|
# publish packages
|
|
./node_modules/.bin/nx run-many --target=clean --nx-ignore-cycles
|
|
./node_modules/.bin/nx run-many --target=build --nx-ignore-cycles --skip-nx-cache
|
|
./node_modules/.bin/lerna publish --no-push --force-publish --dist-tag latest --exact "$version"
|
|
|
|
# push main branch
|
|
git push origin HEAD
|
|
|
|
# push tag
|
|
git push origin v"$version"
|
|
|
|
# run changelog cli
|
|
npx @sclt/program-changelog
|