diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 58b2dc0..681a540 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,39 +1,39 @@ -name: Linter -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - linter: - runs-on: ubuntu-latest - - steps: - - name: check out code - uses: actions/checkout@v4 - - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: '20.x' - registry-url: 'https://registry.npmjs.org' - - - uses: pnpm/action-setup@v3 - with: - version: 8 - - - name: Install dependencies - run: pnpm install - - - name: Run Biome - run: pnpm run lint - id: biome - - - name: Commit and Push changes - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' - git add . - git commit -m "Apply formatting" - git push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +name: Linter +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + linter: + runs-on: ubuntu-latest + + steps: + - name: check out code + uses: actions/checkout@v4 + + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + + - uses: pnpm/action-setup@v3 + with: + version: 8 + + - name: Install dependencies + run: pnpm install + + - name: Run Biome + run: pnpm run lint + id: biome + + - name: Commit and Push changes + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' + git add . + git commit -m "chore: apply formatting" + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 3936a28..678f947 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@types/node": "^20.14.2", "@types/ws": "^8.5.10", "husky": "^9.0.11", - "lint-staged": "^15.2.5", + "lint-staged": "^15.2.6", "typescript": "^5.4.5" }, "optionalDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a81068d..66576ec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -53,8 +53,8 @@ importers: specifier: ^9.0.11 version: 9.0.11 lint-staged: - specifier: ^15.2.5 - version: 15.2.5 + specifier: ^15.2.6 + version: 15.2.6 typescript: specifier: ^5.4.5 version: 5.4.5 @@ -540,8 +540,8 @@ packages: lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} - lint-staged@15.2.5: - resolution: {integrity: sha512-j+DfX7W9YUvdzEZl3Rk47FhDF6xwDBV5wwsCPw6BwWZVPYJemusQmvb9bRsW23Sqsaa+vRloAWogbK4BUuU2zA==} + lint-staged@15.2.6: + resolution: {integrity: sha512-M/3PdijFXT/A5lnbSK3EQNLbIIrkE00JZaD39r7t4kfFOqT1Ly9LgSZSMMtvQ3p2/C8Nyj/ou0vkNHmEwqoB8g==} engines: {node: '>=18.12.0'} hasBin: true @@ -1334,7 +1334,7 @@ snapshots: lines-and-columns@1.2.4: {} - lint-staged@15.2.5: + lint-staged@15.2.6: dependencies: chalk: 5.3.0 commander: 12.1.0