Drone: add npm build pipeline
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2022-11-29 11:44:46 -06:00
parent d66ae85f54
commit aeb37d711b

View File

@ -39,3 +39,39 @@ steps:
commands: commands:
- cd docs/deploy && kubectl apply -f . - cd docs/deploy && kubectl apply -f .
- kubectl rollout restart -n extollo deployment/docs - 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