Drone: add npm build pipeline
continuous-integration/drone Build is passing Details

master
Garrett Mills 1 year ago
parent d66ae85f54
commit aeb37d711b

@ -39,3 +39,39 @@ steps:
commands:
- cd docs/deploy && kubectl apply -f .
- kubectl rollout restart -n extollo deployment/docs
---
kind: pipeline
type: kubernetes
name: npm
steps:
- name: node.js build
image: node:18
commands:
- "npm add --global pnpm"
- pnpm i
- pnpm build
- name: gitea release
image: plugins/gitea-release
settings:
api_key:
from_secret: GITEA_TOKEN
base_url: https://code.garrettmills.dev
checksum: md5
title: ${DRONE_TAG}
when:
event: tag
status: success
- name: npm release
image: plugins/npm
settings:
username: extollo_bot
password:
from_secret: NPM_PASSWORD
email: extollo@garrettmills.dev
when:
event: tag
status: success

Loading…
Cancel
Save