-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 754 Bytes
/
Copy pathauto-build.yml
File metadata and controls
35 lines (30 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Build and commit"
on:
push:
branches:
- master
- ci/*
jobs:
run:
name: "Build and commit"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24.x
- name: Install dependencies
run: npm install
- name: Update source code
run: npm run build && npm run package
- name: Commit changes
uses: EndBug/add-and-commit@v10
with:
author_name: GitHub Actions
author_email: 41658782+ChanTsune@users.noreply.github.com
message: "build commit"
add: "dist/*.js"
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'