Skip to content

Commit

Permalink
DO-1531: use node 20 and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gowrizrh committed Sep 26, 2023
1 parent a5a28af commit 33a4e26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}
- name: Use Node.js 16
- name: Use Node.js 20
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint:check && npm run format:check
Expand Down
12 changes: 4 additions & 8 deletions packages/static-hosting/lib/static-hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,10 @@ export class StaticHosting extends Construct {
],
});

const cloudFrontInvalidationPolicy = new Policy(
this,
"CloudFrontInvalidationPolicy",
{
groups: [publisherGroup],
statements: [cloudFrontInvalidationPolicyStatement],
}
);
new Policy(this, "CloudFrontInvalidationPolicy", {
groups: [publisherGroup],
statements: [cloudFrontInvalidationPolicyStatement],
});
}
new CfnOutput(this, "DistributionId", {
description: "DistributionId",
Expand Down

0 comments on commit 33a4e26

Please sign in to comment.