Skip to content

Lock file maintenance #83

Lock file maintenance

Lock file maintenance #83

Workflow file for this run

name: Format and Lint
on:
push:
branches:
- develop
workflow_dispatch: # Allow manual trigger
permissions:
contents: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
format-and-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24.14.1'
- name: Install dependencies
run: npm ci
- name: Run format
run: npm run format
- name: Run lint:fix
run: npm run lint:fix
- name: Check for changes
id: git-check
run: |
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: steps.git-check.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: auto-format and lint fixes'
title: 'chore: auto-format and lint fixes'
body: |
This PR contains automatic formatting and linting fixes.
branch: maintenance/auto-format-lint
delete-branch: true