Skip to content

chore(ci): Node.js workflow #9

chore(ci): Node.js workflow

chore(ci): Node.js workflow #9

Workflow file for this run

name: Node.js Workflow
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup Bun Env
uses: oven-sh/setup-bun@v1
with:
bun-version: "latest"
- name: Install
run: bun install
- name: Lint
run: bun run lint
continue-on-error: true
- name: Format
run: bun run format
- name: Commit All Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: devmirza-bot
commit_user_email: [email protected]
commit_author: DevMirza Bot <[email protected]>
commit_message: "[ci] Format changes"