@aiursoft/autodark.js 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +19 -0
- package/package.json +1 -1
package/.gitlab-ci.yml
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
stages:
|
|
2
|
+
- s360
|
|
2
3
|
- check
|
|
3
4
|
- publish
|
|
4
5
|
|
|
@@ -7,8 +8,26 @@ workflow:
|
|
|
7
8
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
8
9
|
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
|
|
9
10
|
when: never
|
|
11
|
+
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
12
|
+
variables:
|
|
13
|
+
S360_PURPOSE: baseline
|
|
14
|
+
S360_CHECK_KEY: '$S360_BASELINE_KEY'
|
|
10
15
|
- if: '$CI_COMMIT_BRANCH'
|
|
11
16
|
|
|
17
|
+
variables:
|
|
18
|
+
S360_PURPOSE: review
|
|
19
|
+
S360_CHECK_KEY: ''
|
|
20
|
+
|
|
21
|
+
s360:
|
|
22
|
+
stage: s360
|
|
23
|
+
script:
|
|
24
|
+
- export PATH="$PATH:$HOME/.dotnet/tools"
|
|
25
|
+
- dotnet tool update Aiursoft.S360.Client --global --add-source https://nuget.aiursoft.com/v3/index.json
|
|
26
|
+
- s360 check --path . --ecosystem npm --npm-lockfile-only --purpose "$S360_PURPOSE"
|
|
27
|
+
retry:
|
|
28
|
+
max: 2
|
|
29
|
+
when: runner_system_failure
|
|
30
|
+
|
|
12
31
|
check:
|
|
13
32
|
stage: check
|
|
14
33
|
script:
|