Skip to content

Commit fe2cc4d

Browse files
author
Lasim
committed
ci: update permissions and streamline linting jobs for documentation
1 parent b4aca26 commit fe2cc4d

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ on:
99
- main
1010

1111
permissions:
12-
contents: write
13-
issues: write
14-
pull-requests: write
12+
contents: read
1513

1614
jobs:
17-
lint_build:
18-
name: Run ESLint
15+
lint_and_validate:
16+
name: Lint and Validate Documentation
1917
runs-on: ubuntu-latest
2018

2119
steps:
@@ -30,28 +28,8 @@ jobs:
3028
- name: Install Dependencies
3129
run: npm ci
3230

33-
- name: Run Markdown ESLint
31+
- name: Run Markdown Linting
3432
run: npm run lint:md
3533

36-
- name: Run Lint Links
37-
run: npm run lint:links
38-
39-
release:
40-
name: Run Release
41-
runs-on: ubuntu-latest
42-
needs: lint_build
43-
44-
steps:
45-
- name: Checkout Code
46-
uses: actions/checkout@v4
47-
48-
- name: Setup Node.js
49-
uses: actions/setup-node@v4
50-
with:
51-
node-version: 20
52-
- run: npm ci
53-
- run: npm audit signatures
54-
- name: Release
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
run: npm run semantic-release
34+
- name: Validate Links
35+
run: npm run lint:links

0 commit comments

Comments
 (0)