Skip to content

Commit d6da345

Browse files
committed
ci: patch deploy web
1 parent ffea5cc commit d6da345

File tree

4 files changed

+27
-21
lines changed

4 files changed

+27
-21
lines changed

.github/workflows/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ jobs:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
run: |
5656
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
57-
npx gh-pages -d packages/web-demo/out -u "github-actions-bot <[email protected]>"
57+
pnpm run deploy:web -- -u "github-actions-bot <[email protected]>"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"build:zh-tw": "make zh-cn",
2121
"build:types": "tsc -p tsconfig.types.json",
2222
"build:web": "npm -C ./packages/web-demo run build",
23+
"deploy:web": "npm -C ./packages/web-demo run deploy",
2324
"bump-version": "node scripts/bump-version.js",
2425
"test": "jest",
2526
"test-types": "tsd"

packages/web-demo/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"dev": "next dev --turbopack",
88
"build": "next build",
99
"start": "next start",
10-
"lint": "next lint"
10+
"lint": "next lint",
11+
"deploy": "gh-pages -d out"
1112
},
1213
"dependencies": {
1314
"react": "^19.0.0",
@@ -31,12 +32,13 @@
3132
"eslint-plugin-n": "^17.19.0",
3233
"eslint-plugin-prettier": "^5.4.1",
3334
"eslint-plugin-promise": "^7.2.1",
35+
"gh-pages": "^4.0.0",
36+
"jieba-zh-tw": "workspace:*",
37+
"js-jieba": "workspace:*",
3438
"next": "15.3.3",
3539
"prettier-config-standard": "^7.0.0",
3640
"tailwindcss": "^4",
3741
"typescript": "^5",
38-
"typescript-eslint": "^8.34.0",
39-
"jieba-zh-tw": "workspace:*",
40-
"js-jieba": "workspace:*"
42+
"typescript-eslint": "^8.34.0"
4143
}
4244
}

pnpm-lock.yaml

Lines changed: 19 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)