Skip to content

Commit

Permalink
configure so that publishes package from creation of gh tag via drone
Browse files Browse the repository at this point in the history
  • Loading branch information
mongodben committed Oct 30, 2023
1 parent d626d91 commit f9df609
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,41 @@ steps:
api_server: https://api.prod.corp.mongodb.com
kubernetes_token:
from_secret: prod_kubernetes_token

# ---
# mongodb-rag-core
# ---
---
kind: pipeline
name: publish-mongodb-rag-core

trigger:
event:
- tag
ref:
include:
- refs/tags/mongodb-rag-core-v*

steps:
- name: npm
image: plugins/npm
environment:
LG_ARTIFACTORY_PASSWORD:
from_secret: lg_artifactory_password
LG_ARTIFACTORY_USERNAME:
from_secret: lg_artifactory_username
LG_ARTIFACTORY_EMAIL:
from_secret: lg_artifactory_email
settings:
folder: chat-core
registry: https://registry.npmjs.org/
username:
from_secret: mongodb_chatbot_ui_npm_username
email:
from_secret: mongodb_chatbot_ui_npm_email
password:
from_secret: mongodb_chatbot_ui_npm_token

# ---
# Chat UI
# ---
Expand Down
2 changes: 1 addition & 1 deletion chat-core/.release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"tagName": "mongodb-rag-core-v${version}"
},
"npm": {
"publish": true
"publish": false
},
"github": {
"releaseName": "mongodb-rag-core-v${version}",
Expand Down

0 comments on commit f9df609

Please sign in to comment.