Skip to content

Commit

Permalink
added token for workflow access
Browse files Browse the repository at this point in the history
  • Loading branch information
paragraph-dev committed Jan 8, 2025
1 parent f4a2169 commit bb27568
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Code Quality checks
on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
prettier:
name: Prettier
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18]

permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: pnpm install -D
- name: Fix formatting with Prettier
run: pnpm format
- name: Check formatting with Prettier
run: pnpm check
- name: Auto-commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
token: ${{ secrets.WORKFLOW_TOKEN }}

0 comments on commit bb27568

Please sign in to comment.