File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed
actions/build-design-system-docs Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,15 @@ description: Build the Design System Docs site
55runs :
66 using : composite
77 steps :
8- # 1. Checkout the PR code
9- - uses : actions/checkout@v4
10-
11- # 2. Set up Node
8+ # 1. Set up Node
129 - uses : actions/setup-node@v4
1310 with :
1411 node-version-file : .nvmrc
1512 cache : yarn
1613
17- # 3 . Install dependencies for just the design-system-docs package
14+ # 2 . Install dependencies for just the design-system-docs package
1815 - run : yarn workspaces focus --production @automattic/design-system-docs
1916
20- # 4 . Build the design-system-docs workspace
17+ # 3 . Build the design-system-docs workspace
2118 - name : Build design system docs
2219 run : yarn workspace @automattic/design-system-docs build
Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ jobs:
2020 runs-on : ubuntu-latest
2121
2222 steps :
23- # 1. Build the Design System Docs site
23+ # 1. Checkout the PR code
24+ - uses : actions/checkout@v4
25+
26+ # 2. Build the Design System Docs site
2427 - uses : ./.github/actions/build-design-system-docs
2528
26- # 2 . Upload over SSH to the production server
29+ # 3 . Upload over SSH to the production server
2730 - name : Sync to production server
2831 env :
2932 # See: https://wp.me/p9o2xV-5Da#comment-11607
Original file line number Diff line number Diff line change @@ -21,13 +21,16 @@ jobs:
2121 runs-on : ubuntu-latest
2222
2323 steps :
24- # 1. Build the Design System Docs site
24+ # 1. Checkout the PR code
25+ - uses : actions/checkout@v4
26+
27+ # 2. Build the Design System Docs site
2528 - uses : ./.github/actions/build-design-system-docs
2629
27- # 2 . Install Wrangler
30+ # 3 . Install Wrangler
2831 - run : npm install -g wrangler
2932
30- # 3 . Upload a new Worker version and capture the preview URL
33+ # 4 . Upload a new Worker version and capture the preview URL
3134 - name : Upload Worker version
3235 id : upload
3336 env :
@@ -46,15 +49,15 @@ jobs:
4649 # Expose it to later steps
4750 echo "url=$URL" >> "$GITHUB_OUTPUT"
4851
49- # 4 . Try to find an existing comment with our marker
52+ # 5 . Try to find an existing comment with our marker
5053 - name : Find preview comment
5154 id : find_comment
5255 uses : peter-evans/find-comment@v3
5356 with :
5457 issue-number : ${{ github.event.pull_request.number }}
5558 body-includes : ' <!-- cf-preview-comment -->'
5659
57- # 5 . Create or update a comment that shows the preview URL
60+ # 6 . Create or update a comment that shows the preview URL
5861 - name : Comment (create or update)
5962 uses : peter-evans/create-or-update-comment@v4
6063 with :
You can’t perform that action at this time.
0 commit comments