datakeen-session-react 0.0.4 → 1.0.1

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 ADDED
@@ -0,0 +1,59 @@
1
+ stages:
2
+ - test
3
+ - lint
4
+ - publish
5
+
6
+ #############################################
7
+ # #
8
+ # TESTS #
9
+ # #
10
+ #############################################
11
+
12
+ test:
13
+ stage: test
14
+ image: node:18
15
+ script:
16
+ - echo "[TODO] TESTS"
17
+ only:
18
+ - main
19
+ - merge_requests
20
+
21
+ ############################################
22
+ # #
23
+ # LINT #
24
+ # #
25
+ ############################################
26
+
27
+ lint:
28
+ stage: lint
29
+ image: node:18
30
+ script:
31
+ - npm ci
32
+ - npm run lint || true
33
+ only:
34
+ - main
35
+ - merge_requests
36
+ needs:
37
+ - test
38
+
39
+ #################################################
40
+ # #
41
+ # PUBLISH #
42
+ # #
43
+ #################################################
44
+
45
+ publish:
46
+ stage: publish
47
+ image: node:latest
48
+ script:
49
+ - git config user.email "ci@example.com"
50
+ - git config user.name "CI Bot"
51
+ - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
52
+ - npm ci
53
+ - npm run rollup
54
+ - npm version patch
55
+ - npm publish
56
+ only:
57
+ - main
58
+ needs:
59
+ - lint