Skip to content

Commit

Permalink
[add] GitHub PR badges
Browse files Browse the repository at this point in the history
[optimize] upgrade to Node.js, KoAJAX 3 & other latest Upstream packages/actions
  • Loading branch information
TechQuery committed Sep 5, 2024
1 parent 965e354 commit 30189a7
Show file tree
Hide file tree
Showing 10 changed files with 2,023 additions and 2,247 deletions.
17 changes: 17 additions & 0 deletions .github/pr-badge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- icon: visualstudio
label: 'GitHub.dev'
message: 'PR-$prNumber'
color: 'blue'
url: 'https://github.dev/$owner/$repo/pull/$prNumber'

- icon: github
label: 'GitHub codespaces'
message: 'PR-$prNumber'
color: 'black'
url: 'https://codespaces.new/$owner/$repo/pull/$prNumber'

- icon: git
label: 'GitPod.io'
message: 'PR-$prNumber'
color: 'orange'
url: 'https://gitpod.io/?autostart=true#https://github.com/$owner/$repo/pull/$prNumber'
3 changes: 2 additions & 1 deletion .github/workflows/image-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: calibreapp/image-actions
uses: docker://calibreapp/github-image-actions
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: pnpm
- name: Install & Build
run: |
pnpm i --frozen-lockfile
pnpm build
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./dist
cname: wuhan2020.kaiyuanshe.cn
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: pnpm
- name: Install & Build
run: |
Expand Down
33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"browser-unhandled-rejection": "^1.0.2",
"cell-router": "^3.0.0-rc.8",
"classnames": "^2.5.1",
"dom-renderer": "^2.1.8",
"echarts": "^5.5.0",
"dom-renderer": "^2.3.0",
"echarts": "^5.5.1",
"echarts-jsx": "^1.2.1",
"github-web-widget": "^4.0.0-rc.2",
"koajax": "^1.1.2",
"mobx": "^6.12.4",
"mobx-github": "^0.3.2",
"mobx-restful": "^1.0.0-rc.5",
"web-cell": "^3.0.0-rc.16",
"koajax": "^3.0.1",
"mobx": "^6.13.1",
"mobx-github": "^0.3.4",
"mobx-restful": "^1.0.1",
"web-cell": "^3.0.0",
"web-utility": "^4.4.0"
},
"devDependencies": {
Expand All @@ -34,24 +34,27 @@
"@parcel/transformer-less": "~2.12.0",
"@parcel/transformer-typescript-tsc": "~2.12.0",
"@parcel/transformer-webmanifest": "~2.12.0",
"@types/node": "^18.19.37",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@types/node": "^20.16.5",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"buffer": "^6.0.3",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"husky": "^9.1.5",
"lint-staged": "^15.2.10",
"parcel": "~2.12.0",
"parcel-transformer-markdown": "^3.0.1",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"process": "^0.11.10",
"rimraf": "^6.0.1",
"tsx": "^4.15.6",
"typescript": "~5.4.5",
"tsx": "^4.19.0",
"typescript": "~5.5.4",
"workbox-cli": "^7.1.0"
},
"resolutions": {
"koajax": "$koajax"
},
"prettier": {
"singleQuote": true,
"trailingComma": "none",
Expand Down
Loading

1 comment on commit 30189a7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for wuhan2020 ready!

✅ Preview
https://wuhan2020-f4g9qmv7i-techquerys-projects.vercel.app

Built with commit 30189a7.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.