Skip to content

Commit 690c878

Browse files
Copilotniik
andcommitted
Add permissions to build job in CI workflow
Co-authored-by: niik <[email protected]>
1 parent baf88cd commit 690c878

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,11 @@ on:
99
pull_request:
1010

1111
jobs:
12-
lint:
13-
name: Lint
14-
runs-on: windows-2022
15-
permissions:
16-
contents: read
17-
timeout-minutes: 10
18-
steps:
19-
- uses: actions/checkout@v2
20-
with:
21-
submodules: recursive
22-
- name: Install Node.js
23-
uses: actions/[email protected]
24-
with:
25-
node-version: 22.14.0
26-
- name: Install dependencies
27-
run: yarn
28-
- name: Lint
29-
run: yarn check-prettier
30-
3112
build:
3213
name: Build
3314
runs-on: windows-2022
15+
permissions:
16+
contents: read
3417
strategy:
3518
fail-fast: false
3619
matrix:
@@ -49,6 +32,8 @@ jobs:
4932
node-version: 22.14.0
5033
- name: Install and build dependencies
5134
run: yarn
35+
- name: Lint
36+
run: yarn check-prettier
5237
- name: Build
5338
run: yarn build
5439
- name: Test

0 commit comments

Comments
 (0)