diff --git a/.github/workflows/build-and-deploy-telemed-ehr.yml b/.github/workflows/build-and-deploy-telemed-ehr.yml index 9d679d40..f694cabd 100644 --- a/.github/workflows/build-and-deploy-telemed-ehr.yml +++ b/.github/workflows/build-and-deploy-telemed-ehr.yml @@ -14,10 +14,8 @@ on: type: choice default: 'development' options: - - development - - dev2 + - development - testing - - staging incrementVersion: description: 'Bump Version?' type: boolean diff --git a/.github/workflows/build-and-deploy-telemed-intake.yml b/.github/workflows/build-and-deploy-telemed-intake.yml index 47057651..4c97c28a 100644 --- a/.github/workflows/build-and-deploy-telemed-intake.yml +++ b/.github/workflows/build-and-deploy-telemed-intake.yml @@ -15,9 +15,7 @@ on: default: 'development' options: - development - - dev2 - testing - - staging incrementVersion: description: 'Bump Version?' type: boolean diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1ce2d59..e3d59a8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,6 +43,12 @@ jobs: - name: Set the urgent-care-intake/zambdas/.env/development.json run: cp packages/urgent-care-intake/zambdas/.env/local.template.json packages/urgent-care-intake/zambdas/.env/development.json + - name: Set the telemed-ehr/zambdas/.env/testing.json + run: cp packages/telemed-ehr/zambdas/.env/local.template.json packages/telemed-ehr/zambdas/.env/testing.json + + - name: Set the telemed-intake/zambdas/.env/testing.json + run: cp packages/telemed-intake/zambdas/.env/local.template.json packages/telemed-intake/zambdas/.env/testing.json + - id: get-store-path run: echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT diff --git a/package.json b/package.json index 89bc37b4..6b18986a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ottehr", - "version": "0.17.0", + "version": "0.18.0", "private": true, "scripts": { "test": "pnpm recursive run test", diff --git a/packages/ehr-utils/package.json b/packages/ehr-utils/package.json index 275c6d23..6d6c1fdc 100644 --- a/packages/ehr-utils/package.json +++ b/packages/ehr-utils/package.json @@ -1,7 +1,7 @@ { "name": "ehr-utils", "private": true, - "version": "0.17.0", + "version": "0.18.0", "main": "lib/main.ts", "types": "lib/main.ts", "scripts": { diff --git a/packages/ottehr-components/package.json b/packages/ottehr-components/package.json index 091a5620..93ab427f 100644 --- a/packages/ottehr-components/package.json +++ b/packages/ottehr-components/package.json @@ -1,7 +1,7 @@ { "name": "ottehr-components", "private": true, - "version": "0.17.0", + "version": "0.18.0", "main": "lib/main.ts", "types": "lib/main.ts", "scripts": { diff --git a/packages/telemed-ehr/app/package.json b/packages/telemed-ehr/app/package.json index d35328d8..6cd59280 100644 --- a/packages/telemed-ehr/app/package.json +++ b/packages/telemed-ehr/app/package.json @@ -1,6 +1,6 @@ { "name": "telemed-ehr-app", - "version": "0.17.0", + "version": "0.18.0", "private": true, "browserslist": { "production": [ @@ -30,6 +30,7 @@ "test": "react-scripts test", "eject": "react-scripts eject", "deploy:development": " PREFIX=development CLOUDFRONT_ID=E10TA6FN58D1OS ENV=development pnpm run ci-deploy-skeleton", + "deploy:testing": " PREFIX=testing CLOUDFRONT_ID=ETFAEVC5V0490 ENV=testing pnpm run ci-deploy-skeleton", "ci-deploy-skeleton": "ENV=${ENV} VITE_APP_SHA=${GIT_HEAD:-$(git rev-parse --short HEAD)} VITE_APP_VERSION=$(node -pe 'require(\"./package.json\").version') pnpm run build:${ENV} && aws s3 sync build/ s3://ehr.ottehr.com --region us-east-1 --delete && aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_ID} --paths '/*' --region us-east-1" }, "dependencies": { @@ -62,4 +63,4 @@ "@types/styled-components": "^5.1.34", "@types/react-page-visibility": "^6.4.4" } -} +} \ No newline at end of file diff --git a/packages/telemed-ehr/zambdas/package.json b/packages/telemed-ehr/zambdas/package.json index b26627fe..0c4ea8a6 100644 --- a/packages/telemed-ehr/zambdas/package.json +++ b/packages/telemed-ehr/zambdas/package.json @@ -1,6 +1,6 @@ { "name": "telemed-ehrzambdas", - "version": "0.17.0", + "version": "0.18.0", "private": true, "scripts": { "start": "npm run start:local", diff --git a/packages/telemed-ehr/zambdas/scripts/configure-zapehr-secrets.ts b/packages/telemed-ehr/zambdas/scripts/configure-zapehr-secrets.ts index e9e2a238..8b37d2b6 100644 --- a/packages/telemed-ehr/zambdas/scripts/configure-zapehr-secrets.ts +++ b/packages/telemed-ehr/zambdas/scripts/configure-zapehr-secrets.ts @@ -1,5 +1,5 @@ import devConfig from '../.env/development.json'; -// import testingConfig from '../.env/testing.json'; +import testingConfig from '../.env/testing.json'; import { getAuth0Token } from '../src/shared'; import { ZambdaClient } from '@zapehr/sdk'; @@ -37,9 +37,9 @@ const main = async (): Promise => { case 'development': await setupSecrets(devConfig); break; - // case 'testing': - // await setupSecrets(testingConfig); - // break; + case 'testing': + await setupSecrets(testingConfig); + break; default: throw new Error('¯\\_(ツ)_/¯ environment must match a valid zapEHR environment.'); } diff --git a/packages/telemed-intake/app/package.json b/packages/telemed-intake/app/package.json index 3c3c7252..98ad67d9 100644 --- a/packages/telemed-intake/app/package.json +++ b/packages/telemed-intake/app/package.json @@ -1,13 +1,15 @@ { "name": "telemed-intake-app", "private": true, - "version": "0.17.0", + "version": "0.18.0", "type": "module", "scripts": { "start:local": "vite", "build:development": "tsc && vite build --mode development", + "build:testing": "tsc && vite build --mode testing", "build": "tsc && vite build", "deploy:development": "ENV=development PREFIX=development CLOUDFRONT_ID=EIYX001DGGQK8 pnpm run ci-deploy-skeleton", + "deploy:testing": "ENV=testing PREFIX=testing CLOUDFRONT_ID=E2IMNWB48TKHJO pnpm run ci-deploy-skeleton", "ci-deploy-skeleton": "ENV=${ENV} VITE_APP_SHA=${GIT_HEAD:-$(git rev-parse --short HEAD)} VITE_APP_VERSION=$(node -pe 'require(\"./package.json\").version') pnpm run build:${ENV} && aws s3 sync build/ s3://telemed.ottehr.com --region us-east-1 --delete && aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_ID} --paths '/*' --region us-east-1" }, "dependencies": { @@ -23,4 +25,4 @@ "devDependencies": { "@types/styled-components": "^5.1.34" } -} +} \ No newline at end of file diff --git a/packages/telemed-intake/zambdas/package.json b/packages/telemed-intake/zambdas/package.json index f0247122..06c921e6 100644 --- a/packages/telemed-intake/zambdas/package.json +++ b/packages/telemed-intake/zambdas/package.json @@ -1,6 +1,6 @@ { "name": "telemed-intake-zambdas", - "version": "0.17.0", + "version": "0.18.0", "private": true, "scripts": { "start": "npm run start:local", diff --git a/packages/utils/package.json b/packages/utils/package.json index f28e701f..8cd9cb0e 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "ottehr-utils", "private": true, - "version": "0.17.0", + "version": "0.18.0", "main": "lib/main.ts", "types": "lib/main.ts", "scripts": {