File tree 6 files changed +201
-188
lines changed
6 files changed +201
-188
lines changed Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- name : Checkout
9
- uses : actions/checkout@v3
10
- - name : Yarn Install
11
- uses : bahmutov/npm-install@v1
12
- - name : Build
13
- run : |
14
- yarn build
9
+ uses : actions/checkout@v4
10
+
11
+ - name : Setup Node v16
12
+ uses : actions/setup-node@v3
13
+ with :
14
+ node-version-file : ' .nvmrc'
15
+ cache : ' yarn'
16
+ cache-dependency-path : ' yarn.lock'
17
+
18
+ - name : Enable Corepack for Yarn
19
+ run : corepack enable
20
+
21
+ - name : Install Dependencies
22
+ run : yarn install
23
+ env :
24
+ YARN_ENABLE_IMMUTABLE_INSTALLS : false
25
+
26
+ - name : Build site
27
+ run : yarn build
15
28
env :
29
+ NODE_OPTIONS : " --max-old-space-size=8192"
16
30
PREFIX_PATHS : true # works like --prefix-paths flag for 'gatsby build'
17
31
PATH_PREFIX : ${{ github.event.repository.name }}
18
32
ADOBE_LAUNCH_SRC : ${{ secrets.AIO_ADOBE_LAUNCH_SRC }}
35
49
- name : GH Pages URL
36
50
id : gh-pages-url
37
51
run : |
38
- echo "View GH-Pages: $(https://adobedocs .github.io/${{ github.event.repository.name }})"
52
+ echo "View GH-Pages: $(https://${{ github.repository_owner }} .github.io/${{ github.event.repository.name }})"
Original file line number Diff line number Diff line change @@ -19,13 +19,28 @@ jobs:
19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
- name : Checkout
22
- uses : actions/checkout@v3
23
- - name : Yarn Install
24
- uses : bahmutov/npm-install@v1
25
- - name : Build
26
- run : |
27
- yarn build
22
+ uses : actions/checkout@v4
23
+
24
+ - name : Setup Node v16
25
+ uses : actions/setup-node@v3
26
+ with :
27
+ node-version-file : ' .nvmrc'
28
+ cache : ' yarn'
29
+ cache-dependency-path : ' yarn.lock'
30
+
31
+ - name : Enable Corepack for Yarn
32
+ run : corepack enable
33
+
34
+ - name : Install Dependencies
35
+ run : yarn install
28
36
env :
37
+ YARN_ENABLE_IMMUTABLE_INSTALLS : false
38
+
39
+ - name : Build site
40
+ run : yarn build
41
+
42
+ env :
43
+ NODE_OPTIONS : " --max_old_space_size=8192"
29
44
PREFIX_PATHS : true # equivalent to --prefix-paths flag for 'gatsby build'
30
45
REPO_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
46
REPO_OWNER : ${{ github.repository_owner }}
Original file line number Diff line number Diff line change 12
12
branch_short_ref : ${{ steps.get_branch.outputs.branch }}
13
13
steps :
14
14
- name : Checkout
15
- uses : actions/checkout@v3
15
+ uses : actions/checkout@v4
16
16
17
17
- name : Get pathPrefix
18
18
uses : actions/github-script@v6
@@ -56,30 +56,25 @@ jobs:
56
56
runs-on : ubuntu-latest
57
57
steps :
58
58
- name : Checkout
59
- uses : actions/checkout@v3
59
+ uses : actions/checkout@v4
60
60
61
- - name : Setup Node v16 for Yarn v3
61
+ - name : Setup Node v16
62
62
uses : actions/setup-node@v3
63
63
with :
64
- node-version : ' 16.15.0' # Current LTS version
65
-
66
- - name : Enable Corepack for Yarn v3
64
+ node-version-file : ' .nvmrc'
65
+ cache : ' yarn'
66
+ cache-dependency-path : ' yarn.lock'
67
+
68
+ - name : Enable Corepack for Yarn
67
69
run : corepack enable
68
-
69
- - name : Install Yarn v3
70
- uses : borales/actions-yarn@v3
71
- with :
72
- cmd : set version stable
73
-
70
+
74
71
- name : Install Dependencies
75
- uses : borales/actions- yarn@v3
72
+ run : yarn install
76
73
env :
77
74
YARN_ENABLE_IMMUTABLE_INSTALLS : false
78
- with :
79
- cmd : install
80
-
75
+
81
76
- name : Gatsby Cache
82
- uses : actions/cache@v2
77
+ uses : actions/cache@v3.3.2
83
78
with :
84
79
path : |
85
80
public
89
84
${{ needs.set-state.outputs.branch_short_ref }}-gatsby-cache-
90
85
91
86
- name : Build site
92
- uses : borales/actions-yarn@v3
93
- with :
94
- cmd : build
87
+ run : yarn build
95
88
env :
96
89
NODE_OPTIONS : " --max_old_space_size=8192"
97
90
PREFIX_PATHS : true # equivalent to --prefix-paths flag for 'gatsby build'
You can’t perform that action at this time.
0 commit comments