2323 registry-url : ' https://npm.pkg.github.com/'
2424 scope : ' @apify-packages'
2525
26- - name : Enable corepack
27- run : |
28- corepack enable
26+ - name : Enable corepack
27+ run : |
28+ corepack enable
2929
3030 - name : Install Dependencies
3131 run : npm ci --force
@@ -40,44 +40,43 @@ jobs:
4040 name : Lint markdown content
4141 runs-on : ubuntu-latest
4242 steps :
43- - name : Checkout Source code
44- uses : actions/checkout@v4
45-
46- - name : Get changed files
47- id : changed-files
48- uses : tj-actions/changed-files@v45
49- with :
50- files : |
51- **/*.md
52- **/*.mdx
53- separator : " ,"
54-
55- - name : Use Node.js 22
56- uses : actions/setup-node@v4
57- with :
58- node-version : 22
59- cache : ' npm'
60- cache-dependency-path : ' package-lock.json'
61- registry-url : ' https://npm.pkg.github.com/'
62- scope : ' @apify-packages'
63-
64- - name : Enable corepack
65- run : |
66- corepack enable
67-
68- - name : Install Dependencies
69- run : npm ci --force
70- env :
71- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
72-
73- - name : List and Lint Changed Markdown Files
74- env :
75- ALL_CHANGED_FILES : ${{ steps.changed-files.outputs.all_changed_files }}
76- run : |
77- IFS=',' read -ra FILE_ARRAY <<< "$ALL_CHANGED_FILES"
78- for file in "${FILE_ARRAY[@]}"; do
79- npx markdownlint "$file"
80- done
43+ - name : Checkout Source code
44+ uses : actions/checkout@v4
45+
46+ - name : Get changed files
47+ id : changed-files
48+ uses : tj-actions/changed-files@v45
49+ with :
50+ files : ' **/*.{md,mdx}'
51+ files_ignore : ' !sources/api/*.{md,mdx}'
52+ separator : " ,"
53+
54+ - name : Use Node.js 22
55+ uses : actions/setup-node@v4
56+ with :
57+ node-version : 22
58+ cache : ' npm'
59+ cache-dependency-path : ' package-lock.json'
60+ registry-url : ' https://npm.pkg.github.com/'
61+ scope : ' @apify-packages'
62+
63+ - name : Enable corepack
64+ run : |
65+ corepack enable
66+
67+ - name : Install Dependencies
68+ run : npm ci --force
69+ env :
70+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
71+
72+ - name : List and Lint Changed Markdown Files
73+ env :
74+ ALL_CHANGED_FILES : ${{ steps.changed-files.outputs.all_changed_files }}
75+ run : |
76+ IFS=',' read -ra FILE_ARRAY <<< "$ALL_CHANGED_FILES"
77+ for file in "${FILE_ARRAY[@]}"; do
78+ npx markdownlint "$file"
79+ done
8180
8281
8382 lint_code :
9695 registry-url : ' https://npm.pkg.github.com/'
9796 scope : ' @apify-packages'
9897
99- - name : Enable corepack
100- run : |
101- corepack enable
98+ - name : Enable corepack
99+ run : |
100+ corepack enable
102101
103102 - name : Install Dependencies
104103 run : npm ci --force
0 commit comments