Skip to content

Commit 138881b

Browse files
committed
ci: use package scripts
1 parent d28f7de commit 138881b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
cache: 'npm'
1717

1818
- name: Install Redocly CLI
19-
run: npm install -g @redocly/cli@latest
19+
run: npm install
2020

2121
- name: Lint OpenAPI specification
22-
run: redocly lint openapi.yml
22+
run: npm run lint
2323

2424
- name: Bundle OpenAPI specification
25-
run: redocly bundle openapi.yml --output bundled-openapi.yml
25+
run: npm run bundle
2626

2727
- name: Upload bundled specification
2828
uses: actions/upload-artifact@v4

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"type": "commonjs",
2222
"main": "index.js",
2323
"scripts": {
24-
"test": "test"
24+
"lint": "redocly lint openapi.yml",
25+
"bundle": "redocly bundle openapi.yml --output bundled-openapi.yml"
2526
},
2627
"dependencies": {
2728
"@redocly/cli": "^1.34.4"

0 commit comments

Comments
 (0)