steps: - name: checkout backend image: registry.odit.services/hub/alpine/git commands: - git clone https://git.odit.services/lfk/backend backend - cd backend - git checkout dev - name: run openapi export image: registry.odit.services/hub/library/node:19.5.0-alpine3.16 commands: - cd backend - yarn - yarn openapi:export - mv ./openapi.json ../openapi.json - cd .. - rm -rf backend - name: run lib build image: registry.odit.services/hub/library/node:19.5.0-alpine3.16 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 ${SOURCE_TAG} [CI SKIP] author_email: bot@odit.services remote: git@git.odit.services:lfk/lfk-client-js.git ssh_key: from_secret: odit-git-bot-sshkey - name: npm image: plugins/npm settings: token: from_secret: niggl-npm-key email: info@odit.services when: event: - manual