Add drone deployment (#60)
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
This commit is contained in:
Vylpes 2023-04-28 17:32:17 +01:00
parent c0ca0e6697
commit 2885d6365b
3 changed files with 1638 additions and 22 deletions

View file

@ -1,3 +1,47 @@
---
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 kind: pipeline
name: integration name: integration

View file

@ -24,7 +24,8 @@
"build": "tsc", "build": "tsc",
"start": "ts-node app.ts", "start": "ts-node app.ts",
"test": "jest", "test": "jest",
"lint": "eslint ." "lint": "eslint .",
"release": "np --no-publish"
}, },
"bugs": { "bugs": {
"url": "https://gitea.vylpes.xyz/RabbitLabs/random-bunny/issues", "url": "https://gitea.vylpes.xyz/RabbitLabs/random-bunny/issues",
@ -41,6 +42,7 @@
"eslint": "^8.35.0", "eslint": "^8.35.0",
"jest": "^29.4.3", "jest": "^29.4.3",
"jest-mock-extended": "^3.0.3", "jest-mock-extended": "^3.0.3",
"np": "^7.7.0",
"ts-jest": "^29.0.5", "ts-jest": "^29.0.5",
"ts-mockito": "^2.6.1", "ts-mockito": "^2.6.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",

1612
yarn.lock

File diff suppressed because it is too large Load diff