File tree 3 files changed +16
-6
lines changed 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ concurrency:
9
9
10
10
defaults :
11
11
run :
12
- working-directory : web-client
12
+ working-directory : web-client-workspace/web-client
13
13
14
14
jobs :
15
15
test :
36
36
${{ runner.os }}-npm-
37
37
38
38
- name : Install dependencies (NPM)
39
+ # NOTE: For npm's workspace support, the install command must be run from the workspace root.
40
+ working-directory : web-client-workspace
39
41
# XXX(Pi): "npm ci" is currently broken: <https://github.com/npm/cli/issues/3947>
40
42
# Work around this by using "npm install" followed by a git working copy check.
41
43
run : |
@@ -110,14 +112,20 @@ jobs:
110
112
${{ runner.os }}-npm-
111
113
112
114
- name : Install dependencies (NPM)
113
- run : npm ci
115
+ # NOTE: For npm's workspace support, the install command must be run from the workspace root.
116
+ working-directory : web-client-workspace
117
+ # XXX(Pi): "npm ci" is currently broken: <https://github.com/npm/cli/issues/3947>
118
+ # Work around this by using "npm install" followed by a git working copy check.
119
+ run : |
120
+ npm install
121
+ git diff --exit-code
114
122
115
123
# TODO: Factor out the steps above, somehow.
116
124
117
125
# Docs: https://www.chromatic.com/docs/github-actions
118
126
- name : Publish to Chromatic
119
127
uses : chromaui/action@v1
120
128
with :
121
- workingDir : web-client
129
+ workingDir : web-client-workspace/web-client
122
130
token : ${{ secrets.GITHUB_TOKEN }}
123
131
projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# Docs: https://docs.netlify.com/configure-builds/file-based-configuration/
2
2
3
3
[build ]
4
- base = " web-client"
5
- publish = " www"
6
- command = " npm run build:prod"
4
+ # NOTE: Build the whole workspace, to include the SDK libraries.
5
+ base = " web-client-workspace"
6
+ publish = " web-client/www"
7
+ command = " npm run --workspace web-client build:prod"
7
8
8
9
# Set fallback
9
10
#
Original file line number Diff line number Diff line change
1
+ 16.13.1
You can’t perform that action at this time.
0 commit comments