Skip to content

Commit cb87e41

Browse files
committed
ci: prevent multiple builds
* Updates the GH Actions workflow to use very specific commands for each step that we want to invoke. This provides clarity as to what is happening in CI. * Additionally, these specific commands bypass Nx, which was not caching the component build step and was running multiple times, which caused broken asset paths in the docs site.
1 parent f77036d commit cb87e41

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/pr-build-and-deploy.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@ jobs:
1919
node-version: 16
2020
- name: Install dependencies
2121
run: yarn install
22-
- name: Build the site and deploy to Netlify
23-
run: yarn prepare:site
22+
- name: Clean everything
23+
run: yarn clean
24+
- name: Build components
25+
run: yarn build:components
26+
- name: Build docs site
27+
run: yarn build:site
28+
- name: Build Storybook (preview)
29+
run: yarn workspace @spectrum-css/preview build
30+
- name: Move Storybook build to dist
31+
run: yarn postbuild:all
2432
- name: Deploy to Netlify
2533
uses: nwtgck/actions-netlify@v2
2634
with:

0 commit comments

Comments
 (0)