From 17b1307c85f57416aafdb7363a019f4897b9eb3a Mon Sep 17 00:00:00 2001 From: EndMove Date: Wed, 12 Apr 2023 21:09:36 +0200 Subject: [PATCH] update drone.yml --- .drone.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index d6f715f..fee2bbb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,12 +15,12 @@ steps: from_secret: gitea_token commands: - VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0" - - SNAPSHOT=${VERSION}-snapshot.${DRONE_BUILD_NUMBER} - - echo "Current version=${VERSION}" - - echo "Snapshot version=${SNAPSHOT}" - - npm config set @ioprojects:registry https://git.endmove.eu/api/packages/io-projectsofficial/npm/ - - npm config set -- '//git.endmove.eu/api/packages/io-projectsofficial/npm/:_authToken' "${GITEA_TOKEN}" + - SNAPSHOT="$VERSION" + "-snapshot." + "$DRONE_BUILD_NUMBER" + - echo $VERSION + - echo $SNAPSHOT - npm ci - - npm version ${SNAPSHOT} + - npm version $SNAPSHOT + - npm install -g npm-cli-login + - npm-cli-login -u IO-Projects -e contact@io-projects.com -p $GITEA_TOKEN -s @ioprojects -r git.endmove.eu/api/packages/io-projectsofficial/npm/ - npm publish - npm dist-tag add @ioprojects/ui-eslint-base@${SNAPSHOT} snapshot