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