This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
Bump html-react-parser from 4.2.2 to 5.0.11 #547
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint (Write) | |
on: | |
pull_request: | |
jobs: | |
prettier: | |
permissions: | |
contents: write | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
# Make sure the actual branch is checked out when running on pull requests | |
ref: ${{ github.head_ref }} | |
# This is important to fetch the changes to the previous commit | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run prettier | |
run: npx prettier -w . | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "(lint): Run prettier against ${{ github.sha }}" | |
branch: ${{ github.head_ref }} | |
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> # instead of the default being the author of the triggering commit. |