Vylpes
2885d6365b
All checks were successful
continuous-integration/drone/push Build is passing
- Added to Drone CI script to auto deploy on tag push - Added script to tag the project Fixes #35 Co-authored-by: Ethan Lane <ethan@vylpes.com> Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/60
74 lines
No EOL
1 KiB
YAML
74 lines
No EOL
1 KiB
YAML
---
|
|
|
|
kind: pipeline
|
|
name: deployment
|
|
|
|
steps:
|
|
- name: build
|
|
image: node
|
|
commands:
|
|
- yarn install --frozen-lockfile
|
|
- yarn build
|
|
- name: test
|
|
image: node
|
|
commands:
|
|
- yarn test
|
|
depends_on:
|
|
- build
|
|
- name: lint
|
|
image: node
|
|
commands:
|
|
- yarn lint
|
|
depends_on:
|
|
- build
|
|
- name: deploy
|
|
image: plugins/npm
|
|
settings:
|
|
username: vylpes
|
|
password:
|
|
from_secret: npm_password
|
|
email: ethan@vylpes.com
|
|
token:
|
|
from_secret: npm_token
|
|
depends_on:
|
|
- test
|
|
- lint
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- tag
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
name: integration
|
|
|
|
steps:
|
|
- name: build
|
|
image: node
|
|
commands:
|
|
- yarn install --frozen-lockfile
|
|
- yarn build
|
|
- name: test
|
|
image: node
|
|
commands:
|
|
- yarn test
|
|
depends_on:
|
|
- build
|
|
- name: lint
|
|
image: node
|
|
commands:
|
|
- yarn lint
|
|
depends_on:
|
|
- build
|
|
|
|
trigger:
|
|
branch:
|
|
- develop
|
|
- feature/*
|
|
- hotfix/*
|
|
- renovate/*
|
|
event:
|
|
- push |