Skip to content

Commit 6c5c701

Browse files
committed
[migrate] upgrade to Cell-Router 4, MobX-GitHub 0.5, Node.js 22, PNPM 10, Lint-Staged 16 & other latest Upstream packages
[optimize] merge GitHub actions for deploying all branches
1 parent a657d98 commit 6c5c701

File tree

20 files changed

+3054
-2941
lines changed

20 files changed

+3054
-2941
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,25 @@ name: CI & CD
22
on:
33
push:
44
branches:
5-
- main
5+
- '**'
66
jobs:
77
Build-and-Deploy:
8+
env:
9+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
10+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
11+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
812
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
915
steps:
1016
- uses: actions/checkout@v4
1117

1218
- uses: pnpm/action-setup@v4
1319
with:
14-
version: 9
20+
version: 10
1521
- uses: actions/setup-node@v4
1622
with:
17-
node-version: 20
23+
node-version: 22
1824
cache: pnpm
1925
- name: Install & Build
2026
run: |
@@ -23,6 +29,7 @@ jobs:
2329
2430
- name: Deploy to GitHub pages
2531
uses: peaceiris/actions-gh-pages@v4
32+
if: github.ref == 'refs/heads/main'
2633
with:
2734
publish_dir: ./dist
2835
cname: bootstrap.web-cell.dev
@@ -31,10 +38,11 @@ jobs:
3138

3239
- name: Deploy to Vercel
3340
uses: amondnet/vercel-action@v25
41+
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
3442
with:
3543
vercel-token: ${{ secrets.VERCEL_TOKEN }}
3644
github-token: ${{ secrets.GITHUB_TOKEN }}
3745
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
3846
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
3947
working-directory: ./dist
40-
vercel-args: --prod
48+
vercel-args: ${{ github.ref == 'refs/heads/main' && '--prod' || '' }}

.github/workflows/push.yml

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

package.json

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,47 @@
66
"node": ">=20"
77
},
88
"dependencies": {
9-
"boot-cell": "^2.0.0-beta.29",
10-
"cell-router": "^3.0.1",
9+
"boot-cell": "^2.0.0-rc.19",
10+
"cell-router": "^4.0.3",
1111
"classnames": "^2.5.1",
12-
"dom-renderer": "^2.6.0",
12+
"dom-renderer": "^2.6.2",
1313
"github-web-widget": "^4.0.0",
1414
"iterable-observer": "^1.1.0",
15-
"mobx": "^6.13.5",
16-
"mobx-github": "^0.3.5",
17-
"web-cell": "^3.0.3",
18-
"web-utility": "^4.4.2"
15+
"mobx": "^6.15.0",
16+
"mobx-github": "^0.5.1",
17+
"web-cell": "^3.2.1",
18+
"web-utility": "^4.6.1"
1919
},
2020
"devDependencies": {
21-
"@parcel/config-default": "~2.13.0",
22-
"@parcel/packager-raw-url": "~2.13.0",
23-
"@parcel/transformer-less": "~2.13.0",
24-
"@parcel/transformer-typescript-tsc": "~2.13.0",
25-
"@parcel/transformer-webmanifest": "~2.13.0",
21+
"@parcel/config-default": "~2.16.0",
22+
"@parcel/packager-raw-url": "~2.16.0",
23+
"@parcel/transformer-less": "~2.16.0",
24+
"@parcel/transformer-typescript-tsc": "~2.16.0",
25+
"@parcel/transformer-webmanifest": "~2.16.0",
2626
"@types/mdx": "^2.0.13",
27-
"@types/node": "^20.17.6",
28-
"fs-match": "^1.7.2",
27+
"@types/node": "^22.18.6",
28+
"fs-match": "^1.7.3",
2929
"husky": "^9.1.7",
30-
"lint-staged": "^15.2.10",
31-
"parcel": "~2.13.0",
30+
"lint-staged": "^16.2.1",
31+
"parcel": "~2.16.0",
3232
"parcel-transformer-mdx": "^0.4.2",
33-
"postcss": "^8.4.49",
33+
"postcss": "^8.5.6",
3434
"postcss-modules": "^6.0.1",
35-
"prettier": "^3.3.3",
35+
"prettier": "^3.6.2",
3636
"svgo": "^3.3.2",
37-
"tsx": "^4.19.2",
38-
"typescript": "~5.6.3",
37+
"tsx": "^4.20.6",
38+
"typescript": "~5.9.2",
3939
"workbox-cli": "^7.3.0",
40-
"yaml": "^2.6.1"
40+
"yaml": "^2.8.1"
41+
},
42+
"pnpm": {
43+
"onlyBuiltDependencies": [
44+
"@parcel/watcher",
45+
"@swc/core",
46+
"esbuild",
47+
"lmdb",
48+
"msgpackr-extract"
49+
]
4150
},
4251
"prettier": {
4352
"singleQuote": true,

0 commit comments

Comments
 (0)