Skip to content

Commit

Permalink
chore: create a workflow to automate the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarmos-san committed Nov 2, 2023
1 parent 6196b51 commit 042e2c8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/compile.yml
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/**/*"

0 comments on commit 042e2c8

Please sign in to comment.