Skip to content

Commit ad7cf9e

Browse files
fix: use working-directory instead of --workspace for examples
- npm workspaces must be defined in root package.json - examples are not in the workspaces array - Use defaults.run.working-directory instead
1 parent b2e8965 commit ad7cf9e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/examples.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ permissions:
2020
jobs:
2121
react-sdk-demo:
2222
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
working-directory: examples/react-sdk-demo
2326
steps:
2427
- uses: actions/checkout@v4
2528
with:
@@ -28,11 +31,9 @@ jobs:
2831
with:
2932
node-version: '20'
3033
cache: 'npm'
31-
cache-dependency-path: package-lock.json
34+
cache-dependency-path: examples/react-sdk-demo/package-lock.json
3235
- run: npm install
33-
- run: npm run build --workspace=sdks/urbackend-sdk --if-present
34-
- run: npm run build --workspace=sdks/urbackend-react --if-present
35-
- run: npm run build --workspace=examples/react-sdk-demo --if-present
36+
- run: npm run build
3637

3738
sdk-kanban-client:
3839
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)