fix .drone.yml and dependent packages vulnerabilities (#2)
Reviewed-on: #2 Co-authored-by: EndMove <superjeremi1302@gmail.com> Co-committed-by: EndMove <superjeremi1302@gmail.com>
This commit was merged in pull request #2.
This commit is contained in:
22
.drone.yml
22
.drone.yml
@@ -61,7 +61,7 @@ depends_on:
|
||||
- checkup
|
||||
|
||||
environment:
|
||||
CHANGE: ${CHANGE}
|
||||
VERSION: ${VERSION}
|
||||
|
||||
steps:
|
||||
- name: publish-release
|
||||
@@ -69,25 +69,11 @@ steps:
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
CHANGE: ${CHANGE}
|
||||
commands:
|
||||
- git fetch --tags
|
||||
- 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 $(node -p "require('./package.json').version")
|
||||
- echo $VERSION
|
||||
- npm version $VERSION
|
||||
- git push --set-upstream origin `git name-rev --name-only HEAD`
|
||||
- npm publish
|
||||
- name: gitea-release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
base_url: https://git.endmove.eu
|
||||
title: Release ${VERSION}
|
||||
notes: "See the commits diff for more information's"
|
||||
checksum:
|
||||
- md5
|
||||
- sha1
|
||||
- sha256
|
||||
|
||||
Reference in New Issue
Block a user