File tree 2 files changed +24
-6
lines changed
2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
validate :
11
11
runs-on : ubuntu-latest
12
+ env :
13
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
14
+ PATH_TO_CONTENT : ./content
12
15
steps :
13
- - uses : actions/checkout@v4
16
+ - name : Загрузка платформы
17
+ uses : actions/checkout@v4
18
+ - name : Загрузка контента
19
+ uses : actions/checkout@v4
20
+ with :
21
+ repository : doka-guide/content
22
+ path : content
23
+ - name : Загрузка кеша
24
+ uses : actions/checkout@v2
25
+ with :
26
+ repository : doka-guide/cache
27
+ path : cache
14
28
- uses : actions/setup-node@v4
15
29
with :
16
30
node-version : 20
30
44
${{ runner.os }}-build-${{ env.cache-name }}-
31
45
${{ runner.os }}-build-
32
46
${{ runner.os }}-
33
- - run : |
34
- npm ci
35
- npm run build
36
- npx node-w3c-validator -i ./dist/**/*.html -f lint -ev
47
+ - name : Установка модулей
48
+ run : npm ci
49
+ - name : Копирование кеша
50
+ run : cp ./cache/issues.json ./.issues.json
51
+ - name : Сборка сайта
52
+ run : npm run build
53
+ - name : Валидация
54
+ run : npx node-w3c-validator -i ./dist/**/*.html -f lint -ev
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ const frontMatter = require('gray-matter')
4
4
const { baseUrl, mainSections } = require ( '../../config/constants' )
5
5
const categoryColors = require ( '../../config/category-colors' )
6
6
const { titleFormatter } = require ( '../libs/title-formatter/title-formatter' )
7
- const { getAuthorContributionStats } = require ( '../libs/github-contribution-stats/github-contribution-stats' )
8
7
const { setPath } = require ( '../libs/collection-helpers/set-path' )
9
8
const { isProdEnv } = require ( '../../config/env.js' )
10
9
@@ -311,6 +310,7 @@ module.exports = {
311
310
let contributionStat = undefined
312
311
313
312
if ( isProdEnv ) {
313
+ const { getAuthorContributionStats } = require ( '../libs/github-contribution-stats/github-contribution-stats' )
314
314
contributionStat = getAuthorContributionStats ( )
315
315
}
316
316
You can’t perform that action at this time.
0 commit comments