diff --git a/.github/workflows/Continuous_Deployment_Frontend_Dev.yml b/.github/workflows/Continuous_Deployment_Frontend_Dev.yml index 20d92a3d1..c36afaf70 100644 --- a/.github/workflows/Continuous_Deployment_Frontend_Dev.yml +++ b/.github/workflows/Continuous_Deployment_Frontend_Dev.yml @@ -6,17 +6,22 @@ on: - dev paths: - 'client/**' + workflow_dispatch: defaults: run: working-directory: client jobs: - build: + deploy_frontend_dev: runs-on: ubuntu-latest steps: - name: Checkout Repository Code uses: actions/checkout@v1 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 12 - name: Rebuild sass run: npm rebuild node-sass - name: Install Packages diff --git a/.github/workflows/Continuous_Deployment_Frontend_Prod.yml b/.github/workflows/Continuous_Deployment_Frontend_Prod.yml index 2bc3c9dc3..abaf67544 100644 --- a/.github/workflows/Continuous_Deployment_Frontend_Prod.yml +++ b/.github/workflows/Continuous_Deployment_Frontend_Prod.yml @@ -12,11 +12,15 @@ defaults: working-directory: client jobs: - build: + deploy_frontend_prod: runs-on: ubuntu-latest steps: - name: Checkout Repository Code uses: actions/checkout@v1 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 12 - name: Rebuild sass run: npm rebuild node-sass - name: Install Packages diff --git a/.github/workflows/Continuous_Integration_Frontend.yml b/.github/workflows/Continuous_Integration_Frontend.yml index 826450932..06fd12120 100644 --- a/.github/workflows/Continuous_Integration_Frontend.yml +++ b/.github/workflows/Continuous_Integration_Frontend.yml @@ -4,16 +4,21 @@ on: pull_request: paths: - 'client/**' + - '.github/workflows/Continuous_Integration_Frontend.yml' + workflow_dispatch: defaults: run: working-directory: client jobs: - build: + ci_frontend_build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - uses: actions/setup-node@v3 + with: + node-version: 12 - name: Install Packages run: npm install - name: Lint diff --git a/client/package.json b/client/package.json index f51d7dc43..5c0499ad8 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,9 @@ { "name": "311-data", "version": "0.1.0", + "engines": { + "node": "12.x" + }, "homepage": "https://www.311-data.org/", "dependencies": { "@react-pdf/renderer": "^1.6.8",