ci: install prettier globally

This commit is contained in:
Michael Chris Lopez
2021-10-30 14:33:34 +08:00
parent 619c594029
commit 2bc90d2b17
5 changed files with 13 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ name: Build
on:
push:
branches: [main]
branches: [main, dev]
jobs:
build:

View File

@@ -2,9 +2,9 @@ name: CI
on:
push:
branches: [main]
branches: [main, dev]
pull_request:
branches: [main]
branches: [main, dev]
jobs:
lint:

View File

@@ -2,7 +2,7 @@ name: Doc
on:
push:
branches: [main]
branches: [main, dev]
jobs:
vimdocgen:

View File

@@ -3,7 +3,8 @@ on:
push:
paths:
- 'lua/**.lua'
branches: [main]
- '**.md'
branches: [main, dev]
jobs:
format:
@@ -16,6 +17,7 @@ jobs:
STYLUA_VERSION: 0.11.0
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Setup git
run: |
@@ -31,6 +33,11 @@ jobs:
chmod +x /tmp/stylua
/tmp/stylua --config-path=.stylua.toml lua/
- name: Apply prettier
run: |
npm install -g prettier
prettier --write **/*.md
- name: Create PR
run: |
if ! [[ -z $(git status -s) ]]; then

View File

@@ -76,7 +76,7 @@ the flavor name e.g. `g:rosebones_italic_comments`.
#### g:zenbones_compat
Set to `1` to turn on compatibility mode. Turned on in vim.
Set to `1` to enable compatibility mode. Enable in vim.
### lightline