Skip to content

Update build.yml

Update build.yml #13

Workflow file for this run

name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build --if-present
- name: Commit & Push changes
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add -A
git commit -m "Auto build"
git push
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}