diff --git a/.circleci/config.yml b/.circleci/config.yml index f9006d3a..69b1cdb6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -77,6 +77,7 @@ jobs: command: | echo "Node version is: $(node --version)" echo "Running yarn build:${STAGE}..." + yarn add aws-sdk yarn build:${STAGE} no_output_timeout: 10m - run: @@ -117,14 +118,14 @@ jobs: ROOT_DOMAIN: communitybridge.org PRODUCT_DOMAIN: easycla.communitybridge.org - lint: - <<: *defaults - steps: - - checkout - #- attach_workspace: - # at: /tmp/workspace - - restore_cache: *restore-cache - - run: yarn eslint +# lint: +# <<: *defaults +# steps: +# - checkout +# #- attach_workspace: +# # at: /tmp/workspace +# - restore_cache: *restore-cache +# - run: yarn eslint deployFrontend: &deployFrontendAnchor <<: *defaults @@ -223,16 +224,16 @@ workflows: filters: tags: only: /.*/ - - lint: - requires: - - buildDev - filters: - tags: - only: /.*/ +# - lint: +# requires: +# - buildDev +# filters: +# tags: +# only: /.*/ - deployContributorConsoleDev: requires: - buildDev - - lint +# - lint filters: tags: ignore: /.*/ diff --git a/package.json b/package.json index 6aebc38f..cf7be264 100644 --- a/package.json +++ b/package.json @@ -56,9 +56,9 @@ "@fortawesome/fontawesome-free": "^6.4.0", "@ng-bootstrap/ng-bootstrap": "^6.1.0", "@silvermine/serverless-plugin-cloudfront-lambda-edge": "^2.1.1", + "aws-sdk": "2.1558.0", "@types/node": "^18.16.0", "auth0-spa-js": "^1.6.5", - "aws-sdk": "2.1558.0", "bootstrap": "^4.4.0", "file-saver": "^2.0.5", "query-string": "^6.13.8", diff --git a/serverless.yml b/serverless.yml index 83253a36..e510f390 100644 --- a/serverless.yml +++ b/serverless.yml @@ -12,7 +12,7 @@ package: provider: name: aws - runtime: nodejs14.x + runtime: nodejs16.x stage: ${opt:stage} region: us-east-1 # Region can't be configurable, lambda@edge is us-east-1 only. deploymentBucket: diff --git a/src/app/config/scripts/prefetch-ssm.js b/src/app/config/scripts/prefetch-ssm.js index dc9c7de0..3ab898fb 100644 --- a/src/app/config/scripts/prefetch-ssm.js +++ b/src/app/config/scripts/prefetch-ssm.js @@ -1,6 +1,5 @@ // Copyright The Linux Foundation and each contributor to CommunityBridge. // SPDX-License-Identifier: MIT - const fs = require('fs'); const RetrieveSSMValues = require('./read-ssm'); const configVarArray = ['auth0-clientId', 'auth0-domain', 'proj-console-link', 'corp-console-link', 'lfx-header', 'lfx-footer', 'corporate-v2-base', 'api-base', 'api-v4-base', 'admin-v2-base']; diff --git a/src/app/config/scripts/read-ssm.js b/src/app/config/scripts/read-ssm.js index 49eceb0a..90e81491 100644 --- a/src/app/config/scripts/read-ssm.js +++ b/src/app/config/scripts/read-ssm.js @@ -3,7 +3,7 @@ // Copyright The Linux Foundation and each contributor to CommunityBridge. // SPDX-License-Identifier: MIT const AWS = require('aws-sdk'); - + /** * @param {string[]} variables * @param {string} stage