24 lines
639 B
YAML
24 lines
639 B
YAML
on: push
|
|
name: Run a js build script
|
|
jobs:
|
|
node-build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Pull repo
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: main
|
|
- name: Run node build
|
|
uses: actions/node-action@main
|
|
with:
|
|
script: 'path/to/script'
|
|
- name: Upload built files
|
|
uses: actions/git-auto-commit-action@v7
|
|
with:
|
|
branch: build
|
|
commit_message: "[skip ci] Run build on push"
|
|
commit_user_name: Node build runner [bot]
|
|
commit_user_email: actions@janishutz.com
|
|
commit_author: Node build runner [bot] <actions@janishutz.com>
|