diff --git a/.github/workflows/branch.yaml b/.github/workflows/branch.yaml index 147bbb2..7e7e80b 100644 --- a/.github/workflows/branch.yaml +++ b/.github/workflows/branch.yaml @@ -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 "helix@adobe.com" - 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 "helix@adobe.com" +# git config --local user.name "CI Bot" +# git add --force build/** +# git commit -m "chore(auto): Commit build artifacts [skip ci]" +# git push