Skip to content

Commit 3b30fb0

Browse files
committed
Fix incorrect working directory?
1 parent 791d757 commit 3b30fb0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/new-workflow.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,12 @@ jobs:
8383
type: ${{ matrix.type }}
8484

8585
build-libs:
86-
name: Build and compile the libraries
86+
name: Build and compile libraries
8787
runs-on: ubuntu-latest
8888
needs: find-packages
8989
strategy:
9090
matrix:
91-
package: ${{ fromJSON(needs.find-packages.outputs.libs )}}
92-
93-
defaults:
94-
run:
95-
working-directory: ${{ matrix.package.directory }}
91+
package: ${{ fromJSON(needs.find-packages.outputs.libs) }}
9692

9793
steps:
9894
- name: Install dependencies
@@ -107,7 +103,7 @@ jobs:
107103

108104
- name: Build ${{ matrix.package.name }}
109105
if: steps.cache.outputs.cache-hit != 'true'
110-
run: yarn build
106+
run: yarn workspaces foreach -A --include ${{ matrix.package.name }} run build
111107

112108
- name: Store in Cache
113109
if: steps.cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)