Skip to content

Commit 7b50f8c

Browse files
committed
Trying to add an npm deploy.
1 parent 2dda1af commit 7b50f8c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.drone.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ steps:
3737
image: node:14-alpine
3838
commands:
3939
- yarn lint
40+
41+
- name: npm
42+
image: plugins/npm
43+
settings:
44+
username:
45+
from_secret: npm_username
46+
password:
47+
from_secret: npm_password
48+
when:
49+
ref:
50+
- refs/tags/*

deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
new_tag="$1"
4+
5+
git tag $new_tag
6+
git push origin $new_tag

0 commit comments

Comments
 (0)