Skip to content

Commit

Permalink
[optimize] upgrade to Node.js 20, Taro 4, KoAJAX 3 & other latest Ups…
Browse files Browse the repository at this point in the history
…tream packages/actions

[fix] Initialization scripts of Template Repository
  • Loading branch information
TechQuery committed Oct 27, 2024
1 parent 83173e9 commit bc79a39
Show file tree
Hide file tree
Showing 6 changed files with 3,490 additions and 5,465 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/init-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ env:
jobs:
replace-repository-name:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
steps:
- uses: actions/checkout@v4

Expand All @@ -18,7 +21,7 @@ jobs:
sh .github/workflows/replace-repository-name.sh \
${{ env.TEMPLATE_OWNER }} ${{ env.TEMPLATE_NAME }} \
${{ github.repository_owner }} ${{ github.event.repository.name }}
rm -f .github/workflows/init-template.yml
git checkout -- .github/workflows/init-template.yml
- uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
WMA_ID: ${{ secrets.WMA_ID }}
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 Dependencies
run: pnpm i --frozen-lockfile
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Deploy HTML 5 version to GitHub pages
if: ${{ !env.WMA_ID }}
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./dist
personal_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:

- name: Upload Artifact
if: ${{ env.WMA_ID }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Taro-miniapp-${{ steps.package-version.outputs.current-version }}-bundle
path: ./dist/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
with:
version: 9
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
with:
node-version: 18
node-version: 20
cache: pnpm
- name: Install Dependencies
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/replace-repository-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ TargetName=$4

sed -i "s/$SourceOwner\/$SourceName/$TargetOwner\/$TargetName/ig" \
$(grep -i $SourceOwner/$SourceName -rl . --exclude-dir=.git --exclude-dir=node_modules)
sed -i "s/$SourceOwner/$TargetOwner/ig" \
$(grep -i $SourceOwner -rl . --exclude-dir=.git --exclude-dir=node_modules)
sed -i "s/$SourceName/$TargetName/ig" \
$(grep -i $SourceName -rl . --exclude-dir=.git --exclude-dir=node_modules)
86 changes: 44 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,66 +21,68 @@
"ios >= 8"
],
"dependencies": {
"@antmjs/vantui": "^3.4.4",
"@babel/runtime": "^7.24.7",
"@tarojs/components": "3.6.32",
"@tarojs/helper": "3.6.32",
"@tarojs/plugin-framework-react": "3.6.32",
"@tarojs/plugin-html": "3.6.32",
"@tarojs/plugin-http": "3.6.32",
"@tarojs/plugin-platform-alipay": "3.6.32",
"@tarojs/plugin-platform-h5": "3.6.32",
"@tarojs/plugin-platform-jd": "3.6.32",
"@tarojs/plugin-platform-qq": "3.6.32",
"@tarojs/plugin-platform-swan": "3.6.32",
"@tarojs/plugin-platform-tt": "3.6.32",
"@tarojs/plugin-platform-weapp": "3.6.32",
"@tarojs/react": "3.6.32",
"@tarojs/runtime": "3.6.32",
"@tarojs/shared": "3.6.32",
"@tarojs/taro": "3.6.32",
"@vant/area-data": "^1.5.1",
"@antmjs/vantui": "^3.5.1",
"@babel/runtime": "^7.26.0",
"@tarojs/components": "4.0.7",
"@tarojs/helper": "4.0.7",
"@tarojs/plugin-framework-react": "4.0.7",
"@tarojs/plugin-html": "4.0.7",
"@tarojs/plugin-http": "4.0.7",
"@tarojs/plugin-platform-alipay": "4.0.7",
"@tarojs/plugin-platform-h5": "4.0.7",
"@tarojs/plugin-platform-jd": "4.0.7",
"@tarojs/plugin-platform-qq": "4.0.7",
"@tarojs/plugin-platform-swan": "4.0.7",
"@tarojs/plugin-platform-tt": "4.0.7",
"@tarojs/plugin-platform-weapp": "4.0.7",
"@tarojs/react": "4.0.7",
"@tarojs/runtime": "4.0.7",
"@tarojs/shared": "4.0.7",
"@tarojs/taro": "4.0.7",
"@vant/area-data": "^2.0.0",
"@vant/icons": "^3.0.2",
"bootstrap": "^5.3.3",
"classnames": "^2.5.1",
"koajax": "^1.1.2",
"koajax": "^3.0.2",
"lodash.debounce": "^4.0.8",
"mobx": "^4.15.7",
"mobx-i18n": "^0.4.2",
"mobx-react": "^6.3.1",
"mobx-restful": "^0.6.12",
"preact": "^10.22.0",
"query-string": "^9.0.0",
"web-utility": "^4.4.0"
"preact": "10.20.2",
"query-string": "^9.1.1",
"web-utility": "^4.4.1"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-react": "^7.25.9",
"@octokit/openapi-types": "^22.2.0",
"@prefresh/babel-plugin": "^0.5.1",
"@prefresh/core": "^1.5.2",
"@prefresh/webpack": "~4.0.1",
"@tarojs/cli": "3.6.32",
"@tarojs/webpack5-runner": "3.6.32",
"@tarojs/cli": "4.0.7",
"@tarojs/webpack5-runner": "4.0.7",
"@types/lodash.debounce": "^4.0.9",
"@types/react": "^18.3.3",
"@types/react": "^18.3.12",
"@types/webpack-env": "^1.18.5",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"babel-plugin-import": "^1.13.8",
"babel-preset-taro": "3.6.32",
"babel-preset-taro": "4.0.7",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-taro": "3.6.32",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-simple-import-sort": "^12.1.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"stylelint": "^16.6.1",
"typescript": "~5.5.2",
"webpack": "~5.92.1"
"eslint": "^8.57.1",
"eslint-config-taro": "4.0.7",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"stylelint": "^16.10.0",
"typescript": "~5.6.3",
"webpack": "~5.95.0"
},
"prettier": {
"trailingComma": "none",
Expand Down
Loading

1 comment on commit bc79a39

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for taro-vant-mobx-ts ready!

✅ Preview
https://taro-vant-mobx-clbbwr83o-techquerys-projects.vercel.app

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

Please sign in to comment.