-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (37 loc) · 1.29 KB
/
beta_build_check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This is a basic workflow to help you get started with Actions
name: BETA_BUILD_CHECK
# Controls when the workflow will run
on:
pull_request:
branches:
- Development
paths:
- ".github/workflows/beta_client_adr_push.yml"
- "src/**"
- "config/client/**"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# deployment
client_deployment:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
REACT_APP_CLIENT_TOKEN: ${{ secrets.CLIENT_TOKEN }}
REACT_APP_COMBAT_API_URL: "https://bff.apps.7cav.us/roster/combat"
REACT_APP_RESERVE_API_URL: "https://bff.apps.7cav.us/roster/reserve"
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout the Repo
uses: actions/checkout@v3
- name: Setup node.js
uses: actions/setup-node@v3
- name: Install Dependancies
run: npm i
working-directory: src
- name: Update Browserlist
run: npx browserslist@latest --update-db
working-directory: src
- name: Build Client to Prod
run: npm run build
working-directory: src