diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..bed7e7d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,32 @@ +--- +name: Bug report(报告问题) +about: Create a report to help us improve +--- + + + +# Bug report(问题描述) + +please write your issue description here + +## Steps to reproduce(问题复现步骤) + + + +## Screenshot or Gif(截图或动态图) + +## minimal reproduction(最小可还原代码) + +## System Info + +`npx envinfo --system --npmPackages vue --binaries --browsers` + +执行上面命令,将结果贴下面 diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..c6b45b7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,6 @@ +--- +name: Feature Request(新功能建议) +about: Suggest an idea for this project +--- + +# Feature request(新功能建议) diff --git a/.github/workflows/deploy-h5.yml b/.github/workflows/deploy-h5.yml new file mode 100644 index 0000000..b199657 --- /dev/null +++ b/.github/workflows/deploy-h5.yml @@ -0,0 +1,52 @@ +name: Deploy Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ['main'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + # 设置服务器时区为东八区 + - name: Set time zone + run: sudo timedatectl set-timezone 'Asia/Shanghai' + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'pnpm' + - name: Install dependencies + run: pnpm i --no-frozen-lockfile + - name: Build + run: pnpm build:h5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./dist/build/h5 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/package.json b/package.json index 2f3f1db..edc01a3 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "pinia-plugin-persistedstate": "3.2.1", "qs": "6.5.3", "vue": "3.4.26", - "wot-design-uni": "^1.2.20", + "wot-design-uni": "^1.2.13", "z-paging": "^2.7.10" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3d094b2..ef6bc73 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,7 +66,7 @@ dependencies: specifier: 3.4.26 version: 3.4.26(typescript@4.9.5) wot-design-uni: - specifier: ^1.2.20 + specifier: ^1.2.13 version: 1.2.20(vue@3.4.26) z-paging: specifier: ^2.7.10