1a390b2815
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1s
/ test (push) Failing after 0s
secretlint / Run secretlint to diff files (push) Failing after 1s
UI-TARS E2E Test / E2E (macos-13) (push) Has been cancelled
UI-TARS E2E Test / E2E (macos-latest) (push) Has been cancelled
UI-TARS E2E Test / E2E (windows-latest) (push) Has been cancelled
CI Test, Typecheck / Test & Typecheck (push) Has been cancelled
33 lines
821 B
Bash
Executable File
33 lines
821 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
pnpm changeset pre enter beta
|
|
|
|
echo "=== start release ==="
|
|
|
|
echo "1. update version and generate CHANGELOG..."
|
|
pnpm changeset version
|
|
|
|
echo "2. update dependencies..."
|
|
pnpm install
|
|
|
|
echo "3. publish to npm..."
|
|
pnpm publish -r --no-git-checks --access public --tag beta
|
|
|
|
echo "4. exit changeset..."
|
|
pnpm changeset pre exit
|
|
|
|
echo "5. prepare to push to remote git repository..."
|
|
read -p "confirm push to remote git repository? (y/N) " confirm
|
|
if [[ $confirm == [yY] ]]; then
|
|
git add .
|
|
git commit -m "release: publish beta packages"
|
|
echo "pushing code and tag to remote git repository..."
|
|
git push --follow-tags
|
|
echo "=== release-beta completed ==="
|
|
else
|
|
echo "cancel pushing to remote git repository"
|
|
echo "=== release-beta completed (not pushed to remote) ==="
|
|
fi
|