Skip to content

Commit 9f4b861

Browse files
committed
Fix CI build
1 parent dfe93a5 commit 9f4b861

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/ci-checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
repository: reactodia/reactodia-workspace
27-
path: ../reactodia-workspace
27+
path: ./reactodia-workspace
2828
- name: Use Node.js ${{ matrix.node-version }}
2929
uses: actions/setup-node@v4
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232
cache: 'npm'
3333
- name: Install dependencies
3434
run: npm ci
35+
- name: Install dependencies for library
36+
run: cd ./reactodia-workspace && npm ci
3537
- name: Typecheck
3638
run: npm run typecheck
3739
- name: Build

docusaurus.config.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { themes as prismThemes } from 'prism-react-renderer';
22
import type { Config } from '@docusaurus/types';
33
import type * as Preset from '@docusaurus/preset-classic';
44

5+
const libraryPathPrefix = process.env.CI ? `.` : '..';
6+
57
const config: Config = {
68
title: 'Reactodia',
79
tagline: 'Visual interaction with graph data in a form of a diagram.',
@@ -52,12 +54,12 @@ const config: Config = {
5254
'docusaurus-plugin-typedoc',
5355
{
5456
entryPoints: [
55-
'../reactodia-workspace/src/workspace.ts',
56-
'../reactodia-workspace/src/layout-sync.ts',
57-
'../reactodia-workspace/src/layout.worker.ts',
58-
'../reactodia-workspace/src/legacy-styles.tsx',
57+
`${libraryPathPrefix}/reactodia-workspace/src/workspace.ts`,
58+
`${libraryPathPrefix}/reactodia-workspace/src/layout-sync.ts`,
59+
`${libraryPathPrefix}/reactodia-workspace/src/layout.worker.ts`,
60+
`${libraryPathPrefix}/reactodia-workspace/src/legacy-styles.tsx`,
5961
],
60-
tsconfig: '../reactodia-workspace/tsconfig.typings.json',
62+
tsconfig: `${libraryPathPrefix}/reactodia-workspace/tsconfig.typings.json`,
6163
readme: 'none',
6264
hideGroupHeadings: true,
6365
excludePrivate: true,

0 commit comments

Comments
 (0)