-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: create a workflow to automate the build
- Loading branch information
1 parent
6196b51
commit 042e2c8
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Compile and Commit | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Compile and Commit | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js for the Environment | ||
uses: actions/setup-node@v4.0.0 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
|
||
- name: Install the Dependencies | ||
run: npm ci --ignore-scripts | ||
|
||
- name: Build the Binary | ||
run: npm run all | ||
|
||
- name: Commit to Repository | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "chore: compile the binary using `ncc`" | ||
commit_options: "--no-verify --signoff" | ||
file_pattern: "./dist/**/*" |