DELIVERY-8: add ci, package stabilisation #1
12
.drone.yml
12
.drone.yml
@ -15,12 +15,12 @@ steps:
|
|||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands:
|
commands:
|
||||||
- VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
|
- VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
|
||||||
- SNAPSHOT=${VERSION}-snapshot.${DRONE_BUILD_NUMBER}
|
- SNAPSHOT="$VERSION" + "-snapshot." + "$DRONE_BUILD_NUMBER"
|
||||||
- echo "Current version=${VERSION}"
|
- echo $VERSION
|
||||||
- echo "Snapshot version=${SNAPSHOT}"
|
- echo $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}"
|
|
||||||
- npm ci
|
- 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 publish
|
||||||
- npm dist-tag add @ioprojects/ui-eslint-base@${SNAPSHOT} snapshot
|
- npm dist-tag add @ioprojects/ui-eslint-base@${SNAPSHOT} snapshot
|
||||||
|
Loading…
Reference in New Issue
Block a user