2023-04-12 20:42:47 +02:00
|
|
|
---
|
|
|
|
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"
|
2023-04-13 19:00:29 +02:00
|
|
|
- SNAPSHOT="$(echo $VERSION)-snapshot.${DRONE_BUILD_NUMBER}"
|
2023-04-12 21:09:36 +02:00
|
|
|
- echo $VERSION
|
|
|
|
- echo $SNAPSHOT
|
2023-04-12 20:42:47 +02:00
|
|
|
- npm ci
|
2023-04-13 19:00:29 +02:00
|
|
|
- npm version $SNAPSHOT
|
2023-04-13 19:05:14 +02:00
|
|
|
- npm publish
|
2023-04-13 19:00:29 +02:00
|
|
|
- npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot
|