diff --git a/.drone.yml b/.drone.yml index 4bfea09..627769b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,8 @@ steps: image: node commands: - export version=`node -p "require('./package.json').version"` - - npm version prerelease --preid=`$DRONE_COMMIT | cut -c1-5` --git-tag-version=false --allow-same-version=true + - export commit=`echo $DRONE_COMMIT | cut -c1-5` + - npm version prerelease --preid=commit --git-tag-version=false --allow-same-version=true when: event: exclude: