-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (55 loc) · 1.64 KB
/
_react_compile_all.yaml
File metadata and controls
55 lines (55 loc) · 1.64 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
51
52
53
54
55
---
name: _react-compile_all
on:
workflow_call:
inputs:
node-version:
required: false
default: '20'
description: The version of Node.js to use
type: string
GRAPHQL_ENDPOINT:
required: false
description: The GraphQL endpoint to use for the application
type: string
jobs:
compile:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GRAPHQL_ENDPOINT: ${{ inputs.GRAPHQL_ENDPOINT }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
cache: npm
cache-dependency-path: package-lock.json
- name: Cache
uses: actions/cache@v1
with:
path: ./node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
# if: steps.cache-modules.outputs.cache-hit != 'true'
run: |
npm install
- uses: nelonoel/branch-name@v1.0.1
- name: Run build-changed-apps script
run: npm run build-changed-apps
- name: Configure CI Git User
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Commit and Push Changes
run: |
git add --force -- ./apps/*
git commit --reuse-message ${{ env.BRANCH_NAME }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: build/${{ env.BRANCH_NAME }}
force: true