Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2021-05-23 14:29:19 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2021-05-23 14:29:19 +0300
commit2f439033d1eb8334c5e95ce19eecde61d0fec590 (patch)
tree2ed5372da87c20bbc386e7c83646cc72afeebabd
parent9c89158a88d59f2dedf9424160a1393b17ff5429 (diff)
Add deployment
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
-rw-r--r--.gitlab-ci.yml34
-rw-r--r--.npmrc1
-rw-r--r--package-lock.json16
-rw-r--r--package.json4
4 files changed, 45 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..13703dd
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,34 @@
+stages:
+ - publishing
+
+image: node:13-alpine
+
+Publish Alpha:
+ stage: publishing
+ script:
+ - sed -i -e "s|.BUILD|-alpha.${CI_PIPELINE_ID}|g" ./package.json
+ - npm publish --tag alpha
+ environment:
+ name: Alpha
+ only:
+ - master
+
+Publish Beta:
+ stage: publishing
+ script:
+ - sed -i -e "s|.BUILD|-beta.${CI_PIPELINE_ID}|g" ./package.json
+ - npm publish --tag beta
+ environment:
+ name: Beta
+ only:
+ - testing
+
+Publish Release:
+ stage: publishing
+ script:
+ - sed -i -e "s|.BUILD||g" ./package.json
+ - npm publish --tag latest
+ environment:
+ name: Stable
+ only:
+ - stable \ No newline at end of file
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000..bd3327a
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1 @@
+//registry.npmjs.org/:_authToken=${NPM_TOKEN} \ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index c784c8d..40cfe92 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,11 +1,11 @@
{
"name": "passwords-client",
- "version": "0.1.0",
+ "version": "1.0.0.BUILD",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
- "version": "0.1.0",
+ "version": "1.0.0.BUILD",
"license": "ISC",
"dependencies": {
"eventemitter3": "^4.0.7",
@@ -49,9 +49,9 @@
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8="
},
"node_modules/url-parse": {
- "version": "1.4.7",
- "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz",
- "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==",
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.1.tgz",
+ "integrity": "sha512-HOfCOUJt7iSYzEx/UqgtwKRMC6EU91NFhsCHMv9oM03VJcVo2Qrp8T8kI9D7amFf1cu+/3CEhgb3rF9zL7k85Q==",
"dependencies": {
"querystringify": "^2.1.1",
"requires-port": "^1.0.0"
@@ -109,9 +109,9 @@
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8="
},
"url-parse": {
- "version": "1.4.7",
- "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz",
- "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==",
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.1.tgz",
+ "integrity": "sha512-HOfCOUJt7iSYzEx/UqgtwKRMC6EU91NFhsCHMv9oM03VJcVo2Qrp8T8kI9D7amFf1cu+/3CEhgb3rF9zL7k85Q==",
"requires": {
"querystringify": "^2.1.1",
"requires-port": "^1.0.0"
diff --git a/package.json b/package.json
index 0719f98..fc0df2a 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,12 @@
{
"name": "passwords-client",
- "version": "0.1.0",
+ "version": "1.0.0.BUILD",
"description": "JS client library for the Nextcloud Passwords app",
"main": "src/main.js",
"author": "Marius Wieschollek",
"license": "ISC",
"keywords": [
- "crypto",
+ "libsodium",
"passwords",
"api",
"nextcloud"