Skip to content

Commit 6d14e16

Browse files
committed
release: publish packages
1 parent 2288ce5 commit 6d14e16

File tree

7 files changed

+54
-11
lines changed

7 files changed

+54
-11
lines changed

.changeset/lazy-pots-joke.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"publish:win32": "npm run build && electron-forge publish --arch=x64 --platform=win32",
3434
"publish:win32-arm64": "npm run build && electron-forge publish --arch=arm64 --platform=win32",
3535
"publish": "npm run build && electron-forge publish",
36-
"publish:packages": "pnpm changeset:version && pnpm install && changeset tag && pnpm publish -r --no-git-checks --access public",
36+
"publish:packages": "bash scripts/release-pkgs.sh",
3737
"prepare": "husky"
3838
},
3939
"dependencies": {

packages/action-parser/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# @ui-tars/action-parser
2+
3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- dcabd45: feat: initial publish ui-tars action-parser and shared pkgs
8+
9+
### Patch Changes
10+
11+
- Updated dependencies [dcabd45]
12+
- @ui-tars/shared@1.0.0

packages/action-parser/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ui-tars/action-parser",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
44
"description": "Action parser SDK for UI-TARS",
55
"keywords": [
66
"AI",
@@ -13,7 +13,6 @@
1313
"types": "./dist/index.d.ts",
1414
"scripts": {
1515
"dev": "tsup --watch",
16-
"prepublishOnly": "npm run build",
1716
"prepare": "npm run build",
1817
"build": "tsup",
1918
"test": "vitest",

packages/shared/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @ui-tars/shared
2+
3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- dcabd45: feat: initial publish ui-tars action-parser and shared pkgs

packages/shared/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ui-tars/shared",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
44
"description": "Shared types for UI-TARS",
55
"exports": {
66
"./types": {
@@ -25,7 +25,6 @@
2525
}
2626
},
2727
"scripts": {
28-
"prepublishOnly": "npm run build",
2928
"prepare": "npm run build",
3029
"dev": "tsup --watch",
3130
"build": "tsup",

scripts/release-pkgs.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
echo "=== start release ==="
6+
7+
echo "1. update version and generate CHANGELOG..."
8+
pnpm changeset version
9+
10+
echo "2. update dependencies..."
11+
pnpm install
12+
13+
echo "3. commit version update..."
14+
git add .
15+
git commit -m "release: publish packages"
16+
17+
echo "4. create release tag..."
18+
pnpm changeset tag
19+
20+
echo "5. publish to npm..."
21+
pnpm publish -r --no-git-checks --access public
22+
23+
echo "6. prepare to push to remote git repository..."
24+
read -p "confirm push to remote git repository? (y/N) " confirm
25+
if [[ $confirm == [yY] ]]; then
26+
echo "pushing code and tag to remote git repository..."
27+
git push --follow-tags
28+
echo "=== release completed ==="
29+
else
30+
echo "cancel pushing to remote git repository"
31+
echo "=== release completed (not pushed to remote) ==="
32+
fi

0 commit comments

Comments
 (0)