File tree Expand file tree Collapse file tree 5 files changed +11205
-11
lines changed Expand file tree Collapse file tree 5 files changed +11205
-11
lines changed Original file line number Diff line number Diff line change 36
36
node-version : ' 20'
37
37
cache : ' npm'
38
38
39
+ - name : Install dependencies
40
+ run : npm ci --prefer-offline --no-audit --progress=false
41
+
39
42
- name : Build project
40
43
run : make website
41
44
Original file line number Diff line number Diff line change 1
1
out /
2
+ node_modules /
2
3
super-linter.log
Original file line number Diff line number Diff line change 1
- SPEC_GENERATOR_VER =1.5.0
2
-
3
1
.PHONY : install
4
2
5
3
all : website
8
6
rm -rf ./out
9
7
10
8
install :
11
- @INSTALLED_VERSION=$$(spec-generator --version ) ; \
12
- if [ " $$ INSTALLED_VERSION" != " $( SPEC_GENERATOR_VER) " ]; then \
13
- echo " Installed version ($$ INSTALLED_VERSION) is different from the desired version ($( SPEC_GENERATOR_VER) )." ; \
14
- echo " Installing spec-generator@v$( SPEC_GENERATOR_VER) " ; \
15
- npm install -g spec-generator@v$(SPEC_GENERATOR_VER ) ; \
16
- else \
17
- echo " spec-generator is already installed at the desired version ($( SPEC_GENERATOR_VER) )." ; \
9
+ @if [ ! -d " node_modules" ] || ! git diff --quiet package-lock.json; then \
10
+ npm ci --prefer-offline --no-audit --no-fund --progress=false; \
18
11
fi
19
12
20
13
website : clean install
21
- spec-generator -c .config.json
14
+ npx spec-generator -c .config.json
22
15
23
16
watch : clean install
24
- spec-generator -c .config.json -w
17
+ npx spec-generator -c .config.json -w
25
18
26
19
superlinter :
27
20
docker run --rm -e VALIDATE_ALL_CODEBASE=false -e RUN_LOCAL=true -e VALIDATE_MARKDOWN=true -e MARKDOWN_CONFIG_FILE=" .markdownlint.json" -e LINTER_RULES_PATH=" ." -e DEFAULT_BRANCH=' main' -v $(shell pwd) :/tmp/lint ghcr.io/super-linter/super-linter:slim-v7
You can’t perform that action at this time.
0 commit comments