Skip to content

fix: resolve ESM exports for codepress-browser-extension #40

fix: resolve ESM exports for codepress-browser-extension

fix: resolve ESM exports for codepress-browser-extension #40

name: ESLint Autofix
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: eslint-autofix-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
eslint-autofix:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: true
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ESLint with autofix
run: pnpm exec eslint . --fix || true
- name: Commit and push changes (if any)
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: chore: eslint autofix [skip ci]

Check failure on line 48 in .github/workflows/eslint-autofix.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/eslint-autofix.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
branch: ${{ github.head_ref }}
commit_user_name: github-actions[bot]
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
- name: Verify ESLint passes
run: pnpm exec eslint .