datakeen-session-react 1.1.136-dev.20 → 1.1.136-dev.21

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.
Files changed (2) hide show
  1. package/.gitlab-ci.yml +22 -0
  2. package/package.json +1 -1
package/.gitlab-ci.yml CHANGED
@@ -11,6 +11,7 @@ workflow:
11
11
  stages:
12
12
  - test
13
13
  - lint
14
+ - security
14
15
  - build
15
16
  - publish
16
17
 
@@ -60,6 +61,26 @@ lint:
60
61
  needs:
61
62
  - test
62
63
 
64
+ ############################################
65
+ # #
66
+ # SECURITY #
67
+ # #
68
+ ############################################
69
+
70
+ audit:
71
+ stage: security
72
+ image: node:20
73
+ script:
74
+ - npm ci
75
+ - npm audit --audit-level=high
76
+ rules:
77
+ - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
78
+ - if: '$CI_COMMIT_BRANCH == "dev"'
79
+ - if: '$CI_COMMIT_BRANCH == "staging"'
80
+ - if: '$CI_COMMIT_BRANCH == "main"'
81
+ needs:
82
+ - test
83
+
63
84
  ############################################
64
85
  # #
65
86
  # BUILD #
@@ -84,6 +105,7 @@ build:
84
105
  - if: '$CI_COMMIT_BRANCH == "main"'
85
106
  needs:
86
107
  - lint
108
+ - audit
87
109
 
88
110
  #################################################
89
111
  # #
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datakeen-session-react",
3
- "version": "1.1.136-dev.20",
3
+ "version": "1.1.136-dev.21",
4
4
  "description": "React SDK component to manage and render Datakeen session experiences easily.",
5
5
  "publishConfig": {
6
6
  "access": "public",