Add support for CI
This commit is contained in:
parent
20cf4e0731
commit
2dedbba5b7
|
@ -0,0 +1,39 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: lint
|
||||||
|
image: node:lts-alpine
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm run lint
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: node:lts-alpine
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm run test
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: node:lts-alpine
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm run build
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
image: plugins/gitea-release
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
settings:
|
||||||
|
base_url: https://git.jacknet.io
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
files:
|
||||||
|
- dist/*
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha256
|
|
@ -4,6 +4,7 @@
|
||||||
"description": "An implementation of the Romulus-M cryptography specification.",
|
"description": "An implementation of the Romulus-M cryptography specification.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"lint": "ts-standard",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"build": "tsc"
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue