File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,28 +14,35 @@ jobs:
14
14
- uses : actions/checkout@v2
15
15
- uses : actions/setup-node@v1
16
16
with :
17
- node-version : 10
17
+ node-version : 16
18
+
18
19
- uses : actions/cache@v2
19
20
with :
20
21
path : ' **/node_modules'
21
22
key : modules-${{ hashFiles('**/yarn.lock') }}
23
+
22
24
- name : Install deps
23
25
if : steps.yarn-cache.outputs.cache-hit != 'true'
24
26
run : yarn install --frozen-lockfile
27
+
25
28
- name : Generate versions
26
29
run : node src/loadVersions.js
30
+
27
31
- name : Build app
28
32
run : npx parcel build -d dist --no-autoinstall --public-url 'https://editor-prod.effector.dev' src/index.html
33
+
29
34
- name : Configure AWS Credentials
30
35
uses : aws-actions/configure-aws-credentials@v1
31
36
with :
32
37
aws-access-key-id : ${{ secrets.aws_uploader_access_key_id }}
33
38
aws-secret-access-key : ${{ secrets.aws_uploader_secret_access_key }}
34
39
aws-region : us-east-1
40
+
35
41
- name : Upload to S3
36
42
run : aws s3 sync ./dist s3://$S3_FOR_FRONTEND/ --exclude '.git/*'
37
43
env :
38
44
S3_FOR_FRONTEND : ${{ secrets.s3_for_frontend }}
45
+
39
46
- name : Delete cloudfront cache
40
47
run : aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_STATIC --paths "/*"
41
48
env :
You can’t perform that action at this time.
0 commit comments