Convert to text editor to rich text editor #30
Workflow file for this run
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: Prettier | |
on: | |
pull_request: | |
branches: | |
- alpha | |
workflow_dispatch: | |
jobs: | |
prettier: | |
name: Prettify code | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# Make sure the actual branch is checked out when running on pull requests | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install npm dependencies | |
run: npm install | |
- name: Run Prettier | |
uses: creyD/[email protected] | |
with: | |
prettier_options: --write . | |
commit_message: 'style(prettier): run prettier' | |
prettier_plugins: 'prettier-plugin-svelte prettier-plugin-tailwindcss' |