eslint-config/.drone.yml
EndMove f7df86b0b1
All checks were successful
continuous-integration/drone/push Build is passing
update for vue3 compilance
2023-06-03 13:13:29 +02:00

56 lines
1.1 KiB
YAML

---
kind: pipeline
type: docker
name: npm-publish-snapshot
trigger:
event:
- push
branch:
exclude:
- master
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 --tag snapshot
# - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot
---
kind: pipeline
type: docker
name: npm-publish-release
trigger:
event:
- push
branch:
- master
steps:
- name: publish-release
image: node:18
environment:
GITEA_TOKEN:
from_secret: gitea_token
VERSION: ${NEW_VERSION}
commands:
- git fetch --tags
- OLD_VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
- echo $NEW_VERSION
- echo $OLD_VERSION
- npm ci
- npm version $NEW_VERSION
- npm publish
# - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot