DELIVERY-8: add ci, package stabilisation #1
18
.drone.yml
18
.drone.yml
@ -49,10 +49,22 @@ steps:
|
||||
CHANGE: ${CHANGE}
|
||||
commands:
|
||||
- git fetch --tags
|
||||
- OLD_VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
|
||||
- echo $CHANGE
|
||||
- npm ci
|
||||
- echo $CHANGE
|
||||
- npm version $CHANGE
|
||||
- git push --set-upstream origin `git name-rev --name-only HEAD`
|
||||
- export VERSION=$(node -p "require('./package.json').version") || echo "1.0.0"
|
||||
- echo $VERSION
|
||||
- npm publish
|
||||
# - npm dist-tag add @ioprojects/eslint-config@$SNAPSHOT snapshot
|
||||
- name: gitea-release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_api_key
|
||||
base_url: https://git.endmove.eu
|
||||
title: Release ${VERSION}
|
||||
notes: 'See the commits diff for more informations'
|
||||
checksum:
|
||||
- md5
|
||||
- sha1
|
||||
- sha256
|
||||
|
Loading…
Reference in New Issue
Block a user