Bump @types/node from 24.2.0 to 24.3.0 #988
This file contains hidden or 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: Prettier Action | |
on: | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: write | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next' | |
uses: actions/checkout@v5 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Checkout | |
if: github.event.pull_request.head.repo.full_name != 'XTLS/Xray-docs-next' | |
uses: actions/checkout@v5 | |
with: | |
fetch-depth: 2 | |
- name: Prettify code | |
if: github.event.pull_request.head.repo.full_name == 'XTLS/Xray-docs-next' | |
uses: creyD/[email protected] | |
with: | |
prettier_options: --write **/*.{js,ts,md,vue} | |
- name: Prettify code dry run | |
if: github.event.pull_request.head.repo.full_name != 'XTLS/Xray-docs-next' | |
uses: creyD/[email protected] | |
with: | |
prettier_options: --write **/*.{js,ts,md,vue} | |
only_changed: true | |
dry: true |