This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
name: Build on branches | ||
on: | ||
push: | ||
branches-ignore: | ||
- 'main' | ||
paths-ignore: | ||
- 'build/**' | ||
# uncomment if you need build version of the app on the branch | ||
# note: before merging to main changes in the build folder should be reverted to avoid temporarily deploying | ||
# the branch version in production | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
- run: npm install | ||
- run: npm run build | ||
env: | ||
REACT_APP_AWS_SERVICE_ENDPOINT: ${{ secrets.REACT_APP_SERVICE_ENDPOINT_DEV }} | ||
REACT_APP_MAGIC_LINK_API_KEY: ${{ secrets.REACT_APP_MAGIC_LINK_API_KEY }} | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "CI Bot" | ||
git add --force build/** | ||
git commit -m "chore(auto): Commit build artifacts [skip ci]" | ||
git push | ||
# name: Build on branches | ||
# on: | ||
# push: | ||
# branches-ignore: | ||
# - 'main' | ||
# paths-ignore: | ||
# - 'build/**' | ||
|
||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Use Node.js 18.x | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '18.x' | ||
# - run: npm install | ||
# - run: npm run build | ||
# env: | ||
# REACT_APP_AWS_SERVICE_ENDPOINT: ${{ secrets.REACT_APP_SERVICE_ENDPOINT_DEV }} | ||
# REACT_APP_MAGIC_LINK_API_KEY: ${{ secrets.REACT_APP_MAGIC_LINK_API_KEY }} | ||
# - name: Commit changes | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "CI Bot" | ||
# git add --force build/** | ||
# git commit -m "chore(auto): Commit build artifacts [skip ci]" | ||
# git push |