lfk-client-js/.drone.yml
Nicolai Ort cee8e3b2ba
All checks were successful
continuous-integration/drone Build is passing
Added custom trigger
2020-12-29 14:44:28 +01:00

50 lines
1.1 KiB
YAML

---
kind: pipeline
name: build:tag
steps:
- name: checkout backend
image: alpine/git
commands:
- git clone https://git.odit.services/lfk/backend backend
- git update-ref -d refs/tags
- git fetch
- cd backend
- name: run openapi export
image: node:alpine
commands:
- cd backend
- yarn
- yarn openapi:export
- mv ./openapi.json ../openapi.json
- cd ..
- rm -rf backend
- name: run lib build
image: node:alpine
commands:
- yarn
- yarn build
- npm --no-git-tag-version version ${SOURCE_TAG}
- name: push to repo
image: appleboy/drone-git-push
settings:
branch: main
commit: true
commit_message: new lib version [CI SKIP]
author_email: bot@odit.services
remote: git@git.odit.services:lfk/lfk-client-js.git
ssh_key:
from_secret: GITLAB_SSHKEY
- name: npm
image: plugins/npm
settings:
token:
from_secret: NPM_TOKEN
email: info@odit.services
trigger:
event:
exclude:
- push
include:
- custom