File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed
components/theme-container Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - test-workflow
78jobs :
89 deploy :
910 runs-on : ubuntu-latest
1415 PATTERNS : |
1516 +(docs|docs-vuepress|example)/**/*
1617 +(docs|docs-vuepress|example)/.*/**/*
17- - uses : actions/setup-node@v1
18+ - uses : actions/setup-node@v3
1819 with :
19- node-version : ' 18 '
20+ node-version : ' 22 '
2021 - uses : pnpm/action-setup@v2
2122 if : env.GIT_DIFF
2223 with :
2526 - recursive: true
2627 args: [--frozen-lockfile, --strict-peer-dependencies]
2728
29+ # 👉 新增的 step:cd example && npm ci
30+ - name : install example deps
31+ if : env.GIT_DIFF
32+ run : |
33+ cd example
34+ npm cache clean --force
35+ npm ci --legacy-peer-deps --unsafe-perm
36+
2837 # vuepress生成最终文档
2938 - name : generate docs file
3039 if : env.GIT_DIFF
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ configProvider({
1818} )
1919
2020// app.js
21- // 触发 main 分支 docs 更新 4
21+ // 触发 main 分支 docs 更新 9
2222createApp ( { } )
2323
2424if ( isIframe ) {
Original file line number Diff line number Diff line change 77<script>
88import { createComponent } from '@mpxjs/core'
99import { useTheme } from '../../common/theme'
10- import { REACTHOOKSEXEC } from '@mpxjs/core'
11- import { useContext } from 'react'
12- import { VarContext } from '@mpxjs/webpack-plugin/lib/runtime/components/react/dist/context'
1310
1411createComponent({
15- data: {
16- varContext: {}
17- },
18- [REACTHOOKSEXEC]() {
19- const varContext = useContext(VarContext)
20- if (this.varContext !== varContext) {
21- this.varContext = varContext
22- }
23- },
2412 setup() {
2513 const { themeType } = useTheme()
2614 return {
You can’t perform that action at this time.
0 commit comments