File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,25 @@ jobs:
2222 - uses : actions/checkout@v4
2323 with :
2424 fetch-depth : 10
25+
2526 - name : Use Node.js 20.x
2627 uses : actions/setup-node@v4
2728 with :
2829 node-version : 20.x
29- - run : npm ci
3030
31- - name : Setup upterm session
32- uses : lhotari/action-upterm@v1
31+ - run : npm ci
3332
33+ # Uncomment to debug workflow
34+ # - name: Setup upterm session
35+ # uses: lhotari/action-upterm@v1
3436
3537 - name : Test Browser
3638 run : npm run test:browser
3739 env :
3840 CI : true
3941 BROWSERSTACK_USER : ${{ secrets.BROWSERSTACK_USER }}
4042 BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
43+
4144 - run : npx bundlewatch --config bundlewatch.config.json
4245 env :
4346 BUNDLEWATCH_GITHUB_TOKEN : ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -20,17 +20,18 @@ echo "Building in $NODE_DIST_DIR and $BROWSER_DIST_DIR"
2020cd " $ROOT " || exit 1
2121
2222rm -rf " $NODE_DIST_DIR " " $BROWSER_DIST_DIR "
23- mkdir -p " $NODE_DIST_DIR " " $BROWSER_DIST_DIR "
23+ mkdir -p " $NODE_DIST_DIR "
2424
2525# Build each module type
2626echo " Compiling TypeScript files to $NODE_DIST_DIR "
2727
2828tsc -p tsconfig.json
2929
3030# Clone files for browser builds
31- cp -pr " $NODE_DIST_DIR /" " $BROWSER_DIST_DIR "
31+ cp -pr " $NODE_DIST_DIR " " $BROWSER_DIST_DIR "
32+
3233# Remove browser files from non-browser builds
33- for FILE in ${NODE_DIST_DIR} /* -browser* ; do
34+ for FILE in ${NODE_DIST_DIR} /* -browser* ; do
3435 rm -f $FILE
3536done
3637
You can’t perform that action at this time.
0 commit comments