-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathsetup_template_retail_react_app_manual.yml
More file actions
50 lines (45 loc) · 1.55 KB
/
setup_template_retail_react_app_manual.yml
File metadata and controls
50 lines (45 loc) · 1.55 KB
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
name: SalesforceCommerceCloud/pwa-kit/setup_template_retail_react_app
on:
workflow_dispatch:
jobs:
setup-template-chakra-storefront:
runs-on: ubuntu-latest
steps:
- name: Initialize
id: initialize
shell: bash
run: |
set -e
echo "PROJECT_ID=scaffold-pwa" >> $GITHUB_ENV
branch_name="${GITHUB_REF##*/}"
# Trim using cut as MRT target name is limited to 19 chars
mrt_target_id=$(echo "$branch_name" | cut -c 1-19)
echo "MRT_TARGET_ID=$mrt_target_id" >> $GITHUB_ENV
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup node
id: setup_node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: Setup PWA dependencies
id: 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: Deploy app
id: deploy_app
uses: "./.github/actions/deploy_app"
with:
project_id: ${{ env.PROJECT_ID }}
target_id: ${{ env.MRT_TARGET_ID }}
project_dir: "./packages/template-chakra-storefront"
mobify_user: ${{ secrets.MOBIFY_CLIENT_USER }}
mobify_api_key: ${{ secrets.MOBIFY_CLIENT_API_KEY }}