@pristy/pristy-libvue 0.2.3

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,54 @@
1
+ ---
2
+ stages:
3
+ - prepare
4
+ - build
5
+ - publish
6
+
7
+ default:
8
+ tags:
9
+ - docker
10
+ - jeci
11
+
12
+ variables:
13
+ DOCKER_HOST: tcp://docker:2375
14
+ DOCKER_TLS_CERTDIR: ""
15
+ DOCKER_DRIVER: overlay2
16
+ NPM_TOKEN: ${NPM_TOKEN}
17
+
18
+ ## NODE BUILD ##
19
+
20
+ .npm-build:
21
+ image: docker.io/node:16.15-alpine
22
+ interruptible: true
23
+ retry: 1
24
+ before_script:
25
+ - echo "registry=https://registry.npmjs.org/" > .npmrc
26
+ - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
27
+ only:
28
+ - tags
29
+ - merge_requests
30
+ - develop
31
+
32
+ npm-install:
33
+ stage: prepare
34
+ extends: .npm-build
35
+ script:
36
+ - npm install --no-progress --no-audit --no-fund --verbose
37
+ artifacts:
38
+ name: 'deps_$CI_COMMIT_REF_SLUG'
39
+ paths:
40
+ - node_modules/
41
+ when: on_success
42
+ expire_in: 36h
43
+
44
+ # Publishes the package to nexus.
45
+ publish:
46
+ stage: publish
47
+ extends: .npm-build
48
+ dependencies:
49
+ - npm-install
50
+ script:
51
+ - npm publish --verbose
52
+ resource_group: 'deployment-$CI_COMMIT_REF_SLUG'
53
+ only:
54
+ - tags