aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-20 15:41:46 +0300
committerValentin Popov <info@valentineus.link>2020-02-20 15:41:46 +0300
commit87dd9689d2e3516cea251aca54191b834d4fd8b3 (patch)
treef6192aecc0f5cf0f582cb5f749fe4f272d8277e9
parent80283102f1c38b1637ad34bcbaa904ea157f13d5 (diff)
downloadwebos-service-types-87dd9689d2e3516cea251aca54191b834d4fd8b3.tar.xz
webos-service-types-87dd9689d2e3516cea251aca54191b834d4fd8b3.zip
Initial GitLab CIv0.1.0
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--.editorconfig4
-rw-r--r--.gitlab-ci.yml19
2 files changed, 23 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
index c2459c1..d058e45 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -14,3 +14,7 @@ trim_trailing_whitespace = true
[*.json]
indent_size = 2
indent_style = space
+
+[*.yml]
+indent_size = 2
+indent_style = space
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..6c8df84
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,19 @@
+image: "node:latest"
+
+cache:
+ paths:
+ - node_modules/
+
+job-publish:
+ only:
+ - tags
+
+ before_script:
+ - curl -o- -L https://yarnpkg.com/install.sh | bash
+ - export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
+
+ script:
+ - yarn install
+ - yarn run build
+ - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
+ - npm publish