-
Notifications
You must be signed in to change notification settings - Fork 138
60 lines (52 loc) · 1.74 KB
/
setup_template_reatil_react_app_manual.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: SalesforceCommerceCloud/pwa-kit/setup_template_reatil_react_app_manual
on:
workflow_dispatch:
jobs:
setup-pwa-kit:
runs-on: ubuntu-latest
steps:
- name: Initialize
shell: bash
run: |
set -e
echo "PROJECT_SLUG=scaffold-pwa" >> $GITHUB_ENV
echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Setup PWA dependencies
run: |-
set -e
sudo apt-get update -yq && sudo apt-get install --no-install-recommends python2 python3-pip time -yq
sudo pip install -U pip setuptools
sudo pip install awscli==1.18.85 datadog==0.40.1
node ./scripts/gtime.js monorepo_install npm ci
npm ci
shell: bash
- name: Build template-retail-react-app
shell: bash
run: |-
set -e
cd packages/template-retail-react-app
npm run build
- name: Create MRT credentials file
uses: "./.github/actions/create_mrt"
with:
mobify_user: ${{ secrets.MOBIFY_CLIENT_USER }}
mobify_api_key: ${{ secrets.MOBIFY_CLIENT_API_KEY }}
- name: Create MRT Target
uses: "./.github/actions/create_mrt_target"
with:
project_name: ${{ env.PROJECT_SLUG }}
target_name: ${{ env.BRANCH_NAME }}
mobify_api_key: ${{ secrets.MOBIFY_CLIENT_API_KEY }}
- name: Push Bundle to MRT (E2E Test PWA Kit)
uses: "./.github/actions/push_to_mrt"
with:
CWD: "."
TARGET: ${{ env.BRANCH_NAME }}
FLAGS: --wait