eslint-config/.drone.yml
EndMove 8090226ce1
Some checks failed
continuous-integration/drone/push Build is failing
last up
2023-04-13 19:00:29 +02:00

25 lines
570 B
YAML

---
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="$(echo $VERSION)-snapshot.${DRONE_BUILD_NUMBER}"
- echo $VERSION
- echo $SNAPSHOT
- npm ci
- npm version $SNAPSHOT
- npm publish @ioprojects/ui-eslint-base@$SNAPSHOT
- npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot