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
30 lines
787 B
Bash
Executable File
30 lines
787 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
echo "=== start release ==="
|
|
|
|
echo "1. update version and generate CHANGELOG..."
|
|
pnpm changeset version
|
|
|
|
echo "2. update dependencies..."
|
|
pnpm install
|
|
|
|
echo "3. commit version update...(ensure execute "pnpm changeset" before release)"
|
|
git add .
|
|
git commit -m "release: publish packages"
|
|
|
|
echo "4. publish to npm..."
|
|
pnpm publish -r --no-git-checks --access public
|
|
|
|
echo "5. prepare to push to remote git repository..."
|
|
read -p "confirm push to remote git repository? (y/N) " confirm
|
|
if [[ $confirm == [yY] ]]; then
|
|
echo "pushing code and tag to remote git repository..."
|
|
git push --follow-tags
|
|
echo "=== release completed ==="
|
|
else
|
|
echo "cancel pushing to remote git repository"
|
|
echo "=== release completed (not pushed to remote) ==="
|
|
fi
|