File tree 5 files changed +13
-7
lines changed 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 16
16
node-version-file : " package.json"
17
17
cache : " npm"
18
18
19
+ - run : touch .ci_mode
20
+
19
21
- name : Install dependencies
20
22
run : npm ci
21
23
Original file line number Diff line number Diff line change 15
15
steps :
16
16
- uses : actions/checkout@v4
17
17
18
+ - run : touch .ci_mode
19
+
18
20
- name : Run Slither
19
21
Original file line number Diff line number Diff line change 36
36
node-version-file : " package.json"
37
37
cache : " npm"
38
38
39
+ - run : touch .ci_mode
40
+
39
41
- name : Install dependencies
40
42
run : npm ci
41
43
Original file line number Diff line number Diff line change 35
35
"lint:sol" : " npx hardhat check && npx prettier --check \" contracts/**/*.sol\" " ,
36
36
"lint:sol:fix" : " npx solhint --fix \" contracts/**/*.sol\" && npx prettier --write \" contracts/**/*.sol\" " ,
37
37
"lint:workflow" : " npx prettier -u --check \" *\" && npx eslint .; [ ! -f .audit_mode ] && npx hardhat check" ,
38
- "prepare" : " husky && bash scripts/commands/initialize .sh"
38
+ "prepare" : " husky && mkdir -p contracts test && bash scripts/commands/initialize_template .sh"
39
39
},
40
40
"engines" : {
41
41
"node" : " >=21.2.0 || >=20.11.0 <21.0.0" ,
Original file line number Diff line number Diff line change 2
2
3
3
set -eo pipefail
4
4
5
- echo
6
- echo " Initializing a template..."
5
+ if [ -f " .ci_mode" ]; then
6
+ exit 0
7
+ fi
7
8
8
- INIT_FILE_PATH=" ./scripts/commands/.initialized "
9
+ INIT_FILE_PATH=" ./scripts/commands/.initialized_template "
9
10
10
11
if [ ! -f " $INIT_FILE_PATH " ]; then
11
- mkdir -p contracts test
12
+ echo
13
+ echo " Initializing the template..."
12
14
13
15
rm -f LICENSE
14
16
@@ -30,8 +32,6 @@ if [ ! -f "$INIT_FILE_PATH" ]; then
30
32
echo " Do not forget to push this commit."
31
33
echo
32
34
fi
33
- else
34
- echo " The project has already been initialized."
35
35
fi
36
36
37
37
echo
You can’t perform that action at this time.
0 commit comments