From aeb37d711b4300be738034d26aa8b27b39ef7996 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Tue, 29 Nov 2022 11:44:46 -0600 Subject: [PATCH] Drone: add npm build pipeline --- .drone.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.drone.yml b/.drone.yml index 94497fb..0b7a58f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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