Skip to content

Commit 3a2ad1e

Browse files
committed
update build to node 16
1 parent b8a38b5 commit 3a2ad1e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deploy.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,35 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v1
1616
with:
17-
node-version: 10
17+
node-version: 16
18+
1819
- uses: actions/cache@v2
1920
with:
2021
path: '**/node_modules'
2122
key: modules-${{ hashFiles('**/yarn.lock') }}
23+
2224
- name: Install deps
2325
if: steps.yarn-cache.outputs.cache-hit != 'true'
2426
run: yarn install --frozen-lockfile
27+
2528
- name: Generate versions
2629
run: node src/loadVersions.js
30+
2731
- name: Build app
2832
run: npx parcel build -d dist --no-autoinstall --public-url 'https://editor-prod.effector.dev' src/index.html
33+
2934
- name: Configure AWS Credentials
3035
uses: aws-actions/configure-aws-credentials@v1
3136
with:
3237
aws-access-key-id: ${{ secrets.aws_uploader_access_key_id }}
3338
aws-secret-access-key: ${{ secrets.aws_uploader_secret_access_key }}
3439
aws-region: us-east-1
40+
3541
- name: Upload to S3
3642
run: aws s3 sync ./dist s3://$S3_FOR_FRONTEND/ --exclude '.git/*'
3743
env:
3844
S3_FOR_FRONTEND: ${{ secrets.s3_for_frontend }}
45+
3946
- name: Delete cloudfront cache
4047
run: aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_STATIC --paths "/*"
4148
env:

0 commit comments

Comments
 (0)