From 7b50f8ca0f2396ca4c9abcf1c76f8ed6077f212c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 20 Jan 2021 10:23:37 -0500 Subject: [PATCH] Trying to add an npm deploy. --- .drone.yml | 11 +++++++++++ deploy.sh | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100755 deploy.sh diff --git a/.drone.yml b/.drone.yml index 427b56f..7316c72 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,3 +37,14 @@ steps: image: node:14-alpine commands: - yarn lint + +- name: npm + image: plugins/npm + settings: + username: + from_secret: npm_username + password: + from_secret: npm_password + when: + ref: + - refs/tags/* diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..3ca9d3a --- /dev/null +++ b/deploy.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +new_tag="$1" + +git tag $new_tag +git push origin $new_tag