Skip to content

更新 App.vue 组件,调整版本号样式:1) 增加字体大小至 16px;2) 修改字体颜色为 #606266;3) 增加内边距和边框圆… #123

更新 App.vue 组件,调整版本号样式:1) 增加字体大小至 16px;2) 修改字体颜色为 #606266;3) 增加内边距和边框圆…

更新 App.vue 组件,调整版本号样式:1) 增加字体大小至 16px;2) 修改字体颜色为 #606266;3) 增加内边距和边框圆… #123

Workflow file for this run

name: Deploy Demo Page
on:
# 手动触发
workflow_dispatch:
push:
branches:
- master
paths:
- 'src/**'
- 'public/**'
- 'index.html'
- 'vite.config.ts'
- 'package.json'
- '.github/workflows/deploy-demo.yml'
- '!**.md'
- '!.gitignore'
- '!.editorconfig'
- '!LICENSE'
jobs:
build-and-deploy:
# 只在手动触发或提交信息包含[deploy]时运行
if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[deploy]')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
# 在 CI 环境中使用 npm 官方源
- name: Configure npm for CI
run: |
echo "registry=https://registry.npmjs.org/" > .npmrc
echo "strict-ssl=true" >> .npmrc
- name: Install Dependencies
run: npm ci
# 类型检查可选,如果当前有类型错误可以暂时注释掉
# - name: Type Check
# run: npm run type-check
- name: Build Demo
run: npm run build:demo
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DEPLOY_KEY }}
publish_dir: ./demo-dist
force_orphan: true
# 工作流完成后恢复原始 .npmrc
- name: Restore original .npmrc
if: always()
run: |
if [ -f .npmrc.backup ]; then
mv .npmrc.backup .npmrc
fi