Skip to content

Commit ed24e25

Browse files
committed
Centralize npm run build
1 parent cf705bf commit ed24e25

1 file changed

Lines changed: 32 additions & 3 deletions

File tree

.github/workflows/pull-request-validation.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ jobs:
8383
path: docker.zip
8484
retention-days: 1
8585

86+
- name: Pack all packages
87+
run: npm exec --workspaces -- npm pack
88+
89+
- name: Tar all tarballs
90+
run: find . -type f -name '*.tgz' -not -path '*/node_modules/*' -print0 | tar --null -cvf tarballs.tar --files-from=-
91+
92+
- uses: actions/upload-artifact@v7
93+
with:
94+
compression-level: 0
95+
name: tarballs
96+
path: tarballs.tar
97+
retention-days: 1
98+
8699
build-browser:
87100
name: Build test harness
88101
runs-on: windows-latest
@@ -134,7 +147,7 @@ jobs:
134147

135148
- run: npm clean-install --strict-peer-deps
136149

137-
- run: npm run build --if-present
150+
# - run: npm run build --if-present
138151

139152
- run: npm run precommit --if-present
140153

@@ -153,7 +166,15 @@ jobs:
153166

154167
- run: npm clean-install --strict-peer-deps
155168

156-
- run: npm run build --if-present
169+
- name: Download tarballs
170+
uses: actions/download-artifact@v8
171+
with:
172+
name: tarballs
173+
174+
- name: Extract tarballs
175+
run: npm exec --workspaces -- tar --skip-old-files --strip-components=1 -xf *.tgz
176+
177+
# - run: npm run build --if-present
157178

158179
- name: Run jest --testPathPattern packages/
159180
run: |
@@ -200,7 +221,15 @@ jobs:
200221

201222
- run: npm clean-install --strict-peer-deps
202223

203-
- run: npm run build --if-present
224+
- name: Download tarballs
225+
uses: actions/download-artifact@v8
226+
with:
227+
name: tarballs
228+
229+
- name: Extract tarballs
230+
run: npm exec --workspaces -- tar --skip-old-files --strip-components=1 -xf *.tgz
231+
232+
# - run: npm run build --if-present
204233

205234
- name: Run tsd under packages/bundle (CJS)
206235
run: ../../node_modules/.bin/tsd -t ./dist/botframework-webchat.d.ts

0 commit comments

Comments
 (0)