Trying to add an npm deploy.
This commit is contained in:
parent
2dda1afc7c
commit
7b50f8ca0f
2 changed files with 17 additions and 0 deletions
11
.drone.yml
11
.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/*
|
||||
|
|
6
deploy.sh
Executable file
6
deploy.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
new_tag="$1"
|
||||
|
||||
git tag $new_tag
|
||||
git push origin $new_tag
|
Loading…
Reference in a new issue