Skip to content

JS build for dev_release branch #185

JS build for dev_release branch

JS build for dev_release branch #185

name: JS build for dev_release branch
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build
working-directory: ./app
run: |
npm install
npm run dev
- name: Commit changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "Actions Agent"
git add -A
git commit -m "Build and deploy" || echo "No changes to commit"
- name: Force push to dev_release branch
run: |
git push origin HEAD:dev_release --force