diff --git a/.drone.yml b/.drone.yml index fb6c666..062d208 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,10 +15,10 @@ steps: from_secret: gitea_token commands: - VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0" - - SNAPSHOT="${VERSION}-snapshot.${DRONE_BUILD_NUMBER}" + - SNAPSHOT="$(echo $VERSION)-snapshot.${DRONE_BUILD_NUMBER}" - echo $VERSION - echo $SNAPSHOT - npm ci - - npm version -snapshot.00 - - npm publish @ioprojects/ui-eslint-base@-snapshot.00 - - npm dist-tag add @ioprojects/ui-eslint-base@-snapshot.00 snapshot + - npm version $SNAPSHOT + - npm publish @ioprojects/ui-eslint-base@$SNAPSHOT + - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot