Skip to content

chore: cleanup format workflow #8

chore: cleanup format workflow

chore: cleanup format workflow #8

Workflow file for this run

name: Format
on:
workflow_dispatch:
push:
branches:
- main
jobs:
format:
if: github.repository_owner == 'astrolicious'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/[email protected]
id: app-token
with:
app-id: ${{ vars.BOT_APPID }}
private-key: ${{ secrets.BOT_SECRET }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
ref: ${{ github.head_ref }}
- name: Setup PNPM
uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: "pnpm"
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Lint code with Biome
run: pnpm run lint:fix
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[ci] lint"
branch: ${{ github.head_ref }}