datakeen-session-react 0.0.5 → 1.0.2
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 +65 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/eslint.config.js +13 -0
- package/package.json +17 -8
package/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
- git remote set-url origin https://${CI_PUSH_USER}:${CI_PUSH_TOKEN}@gitlab.com/datakeenteam/teamfullstack/client-sessions-react-sdk.git
|
|
52
|
+
|
|
53
|
+
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
|
|
54
|
+
- npm ci
|
|
55
|
+
- npm run rollup
|
|
56
|
+
- npm version patch
|
|
57
|
+
|
|
58
|
+
- git push origin HEAD:main
|
|
59
|
+
- git push origin --tags
|
|
60
|
+
|
|
61
|
+
- npm publish
|
|
62
|
+
only:
|
|
63
|
+
- main
|
|
64
|
+
needs:
|
|
65
|
+
- lint
|