Skip to content

优化表达式编辑器布局:1. 针对垂直布局下的变量区域添加最大高度设置;2. 将固定高度改为最大高度,以提升布局灵活性。 #136

优化表达式编辑器布局:1. 针对垂直布局下的变量区域添加最大高度设置;2. 将固定高度改为最大高度,以提升布局灵活性。

优化表达式编辑器布局:1. 针对垂直布局下的变量区域添加最大高度设置;2. 将固定高度改为最大高度,以提升布局灵活性。 #136

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