fix .drone.yml and dependent packages vulnerabilities (#2)
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/master Build is failing

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:
2023-06-28 15:53:46 +02:00
parent c1329ee0ea
commit 5b377f41a5
3 changed files with 23 additions and 33 deletions

View File

@@ -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