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