2019-05-03 18:34:29 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: prepare
|
|
|
|
image: node:12
|
|
|
|
commands:
|
|
|
|
- npm install
|
2019-05-10 14:43:38 +02:00
|
|
|
- name: audit
|
|
|
|
image: node:12
|
2019-05-10 15:10:05 +02:00
|
|
|
failure: ignore
|
2019-05-10 14:43:38 +02:00
|
|
|
commands:
|
2019-05-08 02:10:16 +02:00
|
|
|
- npm audit
|
2019-05-03 18:34:29 +02:00
|
|
|
- name: build
|
|
|
|
image: node:12
|
|
|
|
commands:
|
2019-05-08 01:28:16 +02:00
|
|
|
- npm run build:prod
|
2019-05-10 15:23:56 +02:00
|
|
|
- name: pre-release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://gittr.ch/
|
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha512
|
|
|
|
draft: true
|
|
|
|
files: dist/*
|
|
|
|
note: README.md
|
|
|
|
title: VERSION
|
|
|
|
when:
|
|
|
|
branch: develop
|
|
|
|
- name: test-release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://gittr.ch/
|
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha512
|
|
|
|
draft: true
|
|
|
|
files: dist/*
|
|
|
|
note: README.md
|
|
|
|
prerelease: true
|
|
|
|
title: VERSION
|
|
|
|
when:
|
|
|
|
branch: feature/*
|
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://gittr.ch/
|
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha512
|
|
|
|
files: dist/*
|
|
|
|
file_exists: fail
|
|
|
|
note: README.md
|
|
|
|
title: VERSION
|
|
|
|
when:
|
|
|
|
event: tag
|