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
5
5
runs :
6
6
using : composite
7
7
steps :
8
- # 1. Checkout the PR code
9
- - uses : actions/checkout@v4
10
-
11
- # 2. Set up Node
8
+ # 1. Set up Node
12
9
- uses : actions/setup-node@v4
13
10
with :
14
11
node-version-file : .nvmrc
15
12
cache : yarn
16
13
17
- # 3 . Install dependencies for just the design-system-docs package
14
+ # 2 . Install dependencies for just the design-system-docs package
18
15
- run : yarn workspaces focus --production @automattic/design-system-docs
19
16
20
- # 4 . Build the design-system-docs workspace
17
+ # 3 . Build the design-system-docs workspace
21
18
- name : Build design system docs
22
19
run : yarn workspace @automattic/design-system-docs build
Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
22
22
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
24
27
- uses : ./.github/actions/build-design-system-docs
25
28
26
- # 2 . Upload over SSH to the production server
29
+ # 3 . Upload over SSH to the production server
27
30
- name : Sync to production server
28
31
env :
29
32
# See: https://wp.me/p9o2xV-5Da#comment-11607
Original file line number Diff line number Diff line change @@ -21,13 +21,16 @@ jobs:
21
21
runs-on : ubuntu-latest
22
22
23
23
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
25
28
- uses : ./.github/actions/build-design-system-docs
26
29
27
- # 2 . Install Wrangler
30
+ # 3 . Install Wrangler
28
31
- run : npm install -g wrangler
29
32
30
- # 3 . Upload a new Worker version and capture the preview URL
33
+ # 4 . Upload a new Worker version and capture the preview URL
31
34
- name : Upload Worker version
32
35
id : upload
33
36
env :
@@ -46,15 +49,15 @@ jobs:
46
49
# Expose it to later steps
47
50
echo "url=$URL" >> "$GITHUB_OUTPUT"
48
51
49
- # 4 . Try to find an existing comment with our marker
52
+ # 5 . Try to find an existing comment with our marker
50
53
- name : Find preview comment
51
54
id : find_comment
52
55
uses : peter-evans/find-comment@v3
53
56
with :
54
57
issue-number : ${{ github.event.pull_request.number }}
55
58
body-includes : ' <!-- cf-preview-comment -->'
56
59
57
- # 5 . Create or update a comment that shows the preview URL
60
+ # 6 . Create or update a comment that shows the preview URL
58
61
- name : Comment (create or update)
59
62
uses : peter-evans/create-or-update-comment@v4
60
63
with :
You can’t perform that action at this time.
0 commit comments