forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.32 KB
/
prettier.yml
File metadata and controls
47 lines (42 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Prettier
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}
schedule:
- cron: "0 21 * * 6"
permissions:
contents: read
jobs:
prettier:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
with:
disable-sudo-and-containers: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
hosted-compute-watchdog-prod-iad-01.githubapp.com:443
hosted-compute-watchdog-prod-iad-02.githubapp.com:443
nodejs.org:443
objects.githubusercontent.com:443
registry.yarnpkg.com:443
release-assets.githubusercontent.com:443
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "24"
check-latest: true
- name: yarn install
run: yarn install --frozen-lockfile
- name: run prettier
run: yarn prettier --check "*.{yml,yaml}" ".github/*.{yml,yaml}" ".github/**/*.{yml,yaml}" "config/**/*.{yml,yaml}"