feat(utils-lib): creation of the io-projects eslint package
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
26
.drone.yml
Normal file
26
.drone.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: npm-publish-snapshot
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: publish-snapshot
|
||||
image: node:18
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
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}"
|
||||
- npm ci
|
||||
- npm version ${SNAPSHOT}
|
||||
- npm publish
|
||||
- npm dist-tag add @ioprojects/ui-eslint-base@${SNAPSHOT} snapshot
|
||||
Reference in New Issue
Block a user