@@ -143,36 +143,34 @@ jobs:
143143 id : dep-versions
144144 shell : bash
145145 run : |
146- SM_SHA=$(git ls-remote https://github.com/AQBot-Desktop/ stream-monaco.git refs/heads/main | cut -f1 )
147- MS_SHA=$(git ls-remote https://github.com/AQBot-Desktop/ markstream-vue.git refs/heads/aqbot-custom | cut -f1 )
148- echo "cache-key=linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> $GITHUB_OUTPUT
146+ SM_SHA=$(git -C libs/ stream-monaco rev-parse HEAD )
147+ MS_SHA=$(git -C libs/ markstream-vue rev-parse HEAD )
148+ echo "cache-key=${{ runner.os }}-${{ matrix.target }}- linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> $GITHUB_OUTPUT
149149
150150 - name : Cache linked dependencies
151151 id : cache-linked-deps
152152 uses : actions/cache@v4
153153 with :
154154 path : |
155- ../stream-monaco
156- ../markstream-vue
155+ libs/stream-monaco/node_modules
156+ libs/stream-monaco/dist
157+ libs/markstream-vue/node_modules
158+ libs/markstream-vue/packages/markdown-parser/node_modules
159+ libs/markstream-vue/packages/markdown-parser/dist
160+ libs/markstream-vue/packages/markstream-react/node_modules
161+ libs/markstream-vue/packages/markstream-react/dist
157162 key : ${{ steps.dep-versions.outputs.cache-key }}
158163
159164 - name : Build linked dependencies
160165 if : steps.cache-linked-deps.outputs.cache-hit != 'true'
161166 shell : bash
162167 run : |
163- cd ..
164-
165- git clone --depth 1 https://github.com/AQBot-Desktop/stream-monaco.git stream-monaco
166- cd stream-monaco && pnpm install --frozen-lockfile && pnpm build
167- rm -rf .git
168- cd ..
168+ pnpm --dir libs/stream-monaco install --frozen-lockfile
169+ pnpm --dir libs/stream-monaco build
169170
170- git clone --depth 1 -b aqbot-custom https://github.com/AQBot-Desktop/markstream-vue.git markstream-vue
171- cd markstream-vue && pnpm install --frozen-lockfile
172- pnpm run build:parser
173- cd packages/markstream-react && pnpm build && cd ../..
174- rm -rf .git playground*/node_modules
175- cd ..
171+ pnpm --dir libs/markstream-vue install --frozen-lockfile
172+ pnpm --dir libs/markstream-vue run build:parser
173+ pnpm --dir libs/markstream-vue/packages/markstream-react build
176174
177175 - name : Install frontend dependencies
178176 run : pnpm install --frozen-lockfile
@@ -370,4 +368,3 @@ jobs:
370368 workflow_id: 'deploy-website.yml',
371369 ref: 'main',
372370 });
373-
0 commit comments