Skip to content

Commit 5150694

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

File tree

10 files changed

+2501
-2605
lines changed

10 files changed

+2501
-2605
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,25 @@ name: CI & CD
22
on:
33
push:
44
branches:
5-
- source
5+
- '**'
66
jobs:
77
Build-and-Deploy:
88
env:
99
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
1010
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
1111
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315
steps:
1416
- uses: actions/checkout@v4
1517

1618
- uses: pnpm/action-setup@v4
1719
with:
18-
version: 9
20+
version: 10
1921
- uses: actions/setup-node@v4
2022
with:
21-
node-version: 20
23+
node-version: 22
2224
cache: pnpm
2325
- name: Install & Build
2426
run: |
@@ -27,6 +29,7 @@ jobs:
2729
2830
- name: Deploy to GitHub pages
2931
uses: peaceiris/actions-gh-pages@v4
32+
if: github.ref == 'refs/heads/source'
3033
with:
3134
publish_dir: ./dist
3235
personal_token: ${{ secrets.GITHUB_TOKEN }}
@@ -43,4 +46,4 @@ jobs:
4346
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
4447
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
4548
working-directory: ./dist
46-
vercel-args: --prod
49+
vercel-args: ${{ github.ref == 'refs/heads/source' && '--prod' || '' }}

.github/workflows/push.yml

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

package.json

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,42 @@
2020
"url": "https://github.com/EasyWebApp/EasyWebApp.github.io/issues"
2121
},
2222
"dependencies": {
23-
"boot-cell": "^2.0.0-beta.29",
24-
"cell-router": "^3.0.0-rc.8",
23+
"boot-cell": "^2.0.0-rc.19",
24+
"cell-router": "^4.0.3",
2525
"classnames": "^2.5.1",
26-
"dom-renderer": "^2.4.2",
27-
"github-web-widget": "^4.0.0-rc.2",
28-
"koajax": "^3.0.3",
29-
"marked": "^14.1.4",
30-
"mobx": "^6.13.5",
31-
"prismjs": "^1.29.0",
32-
"web-cell": "^3.0.0",
33-
"web-utility": "^4.4.2"
26+
"dom-renderer": "^2.6.2",
27+
"github-web-widget": "^4.0.0",
28+
"koajax": "^3.1.2",
29+
"marked": "^16.3.0",
30+
"mobx": "^6.15.0",
31+
"prismjs": "^1.30.0",
32+
"web-cell": "^3.2.1",
33+
"web-utility": "^4.6.1"
3434
},
3535
"devDependencies": {
36-
"@parcel/config-default": "~2.12.0",
37-
"@parcel/packager-raw-url": "~2.12.0",
38-
"@parcel/transformer-less": "~2.12.0",
39-
"@parcel/transformer-typescript-tsc": "~2.12.0",
40-
"@parcel/transformer-webmanifest": "~2.12.0",
41-
"@types/node": "^20.17.6",
42-
"husky": "^9.1.6",
43-
"lint-staged": "^15.2.10",
44-
"parcel": "~2.12.0",
45-
"prettier": "^3.3.3",
46-
"typescript": "~5.6.3",
36+
"@parcel/config-default": "~2.16.0",
37+
"@parcel/packager-raw-url": "~2.16.0",
38+
"@parcel/transformer-less": "~2.16.0",
39+
"@parcel/transformer-typescript-tsc": "~2.16.0",
40+
"@parcel/transformer-webmanifest": "~2.16.0",
41+
"@types/node": "^22.18.6",
42+
"husky": "^9.1.7",
43+
"lint-staged": "^16.2.1",
44+
"parcel": "~2.16.0",
45+
"prettier": "^3.6.2",
46+
"typescript": "~5.9.2",
4747
"workbox-cli": "^7.3.0"
4848
},
49+
"pnpm": {
50+
"onlyBuiltDependencies": [
51+
"@parcel/watcher",
52+
"@swc/core",
53+
"lmdb",
54+
"msgpackr-extract"
55+
]
56+
},
4957
"prettier": {
58+
"printWidth": 100,
5059
"tabWidth": 4,
5160
"trailingComma": "none",
5261
"arrowParens": "avoid",

0 commit comments

Comments
 (0)