File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 22
22
GATSBY_DEFAULT_MAIN_URL : https://${{ secrets.PROD_CI_MAIN_URL }}
23
23
GATSBY_DRIFT_API : ${{ secrets.PROD_CI_GATSBY_DRIFT_API }}
24
24
GATSBY_GOOGLE_API_KEY : ${{ secrets.PROD_CI_GATSBY_GOOGLE_API_KEY }}
25
+
25
26
jobs :
26
27
update-dependencies :
27
28
name : Update node module dependencies
41
42
key : ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
42
43
- name : Install dependencies
43
44
run : npm install
45
+
44
46
lint :
45
47
name : Lint code and prose
46
48
runs-on : ubuntu-latest
@@ -67,12 +69,12 @@ jobs:
67
69
export PATH="./bin:$PATH"
68
70
vale -v
69
71
- name : Lint code
70
- run : |
71
- npm run lint
72
+ run : npm run lint
72
73
- name : Lint prose
73
74
run : |
74
75
export PATH="./bin:$PATH"
75
76
npm run lint:prose
77
+
76
78
build-deploy-prod :
77
79
name : Build and deploy to prod
78
80
runs-on : ubuntu-latest
93
95
key : ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
94
96
- name : Install dependencies
95
97
run : npm install
98
+ - name : Gatsby Cache Folder
99
+ uses : actions/cache@v1
100
+ with :
101
+ key : gatsby-cache-folder
102
+ path : .cache
103
+ - name : Gatsby Public Folder
104
+ uses : actions/cache@v1
105
+ with :
106
+ key : gatsby-public-folder
107
+ path : public
96
108
- name : Build project
97
- run : npm run build
109
+ run : npm run build:incremental
98
110
- name : Install AWS CLI dependencies
99
111
run : sudo apt-get update && sudo apt-get -y install python-pip python-dev
100
112
- name : Install AWS CLI
You can’t perform that action at this time.
0 commit comments