31 lines
626 B
YAML
31 lines
626 B
YAML
name: Build and conditionally comit changes
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
install-build-commit:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
node-version: "18"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: commit changes
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
|
with:
|
|
commit_message: "CI build run [skip ci]"
|