From e7f14f6c80a9de0a7413b38be98b53d7846c8e3e Mon Sep 17 00:00:00 2001 From: brtrvn <38959183+brtrvn@users.noreply.github.com> Date: Wed, 13 Dec 2023 17:09:46 -0800 Subject: [PATCH] Use Node 16 for the Admin Web UI (#537) * Update to Node 16 for the admin web ui * Update GitHub Actions to also use Node 16 --- .github/workflows/pr-validation.yml | 2 +- client/web/package.json | 2 +- resources/saas-boost-web.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index bdb46c20..ff305179 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -42,7 +42,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 16 - name: Cache node modules uses: actions/cache@v2 diff --git a/client/web/package.json b/client/web/package.json index 4811b28a..4fba0fda 100644 --- a/client/web/package.json +++ b/client/web/package.json @@ -87,7 +87,7 @@ }, "devDependencies": { "husky": ">=4", - "lint-staged": ">=10", + "lint-staged": "^14.0.0", "prettier": "2.0.2" }, "husky": { diff --git a/resources/saas-boost-web.yaml b/resources/saas-boost-web.yaml index fab8dbe5..105d715e 100644 --- a/resources/saas-boost-web.yaml +++ b/resources/saas-boost-web.yaml @@ -141,7 +141,7 @@ Resources: phases: pre_build: commands: - - n 14 + - n 16 - if [ "$REACT_APP_AWS_REGION" = "cn-northwest-1" ] || [ "$REACT_APP_AWS_REGION" = "cn-north-1" ]; then npm config set registry https://registry.npm.taobao.org; fi - aws s3 cp s3://$SOURCE_BUCKET/client/web/src.zip src.zip - unzip src.zip