Skip to content

ci: update react-deploy.js.yml #10

ci: update react-deploy.js.yml

ci: update react-deploy.js.yml #10

name: react-app-deployment
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
shell: bash
- run: npm run build --if-present
shell: bash
- run: git config user.name github-actions
shell: bash
- run: git config user.email [email protected]
shell: bash
- run: git --work-tree build add --all
shell: bash
- run: git commit -m "Automatic Deploy action run by github-actions"
shell: bash
- run: git push origin HEAD:gh-react --force
shell: bash