27 lines
758 B
YAML
27 lines
758 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
|
|
# - npm install -g npm-cli-login
|
|
# - npm-cli-login -u IO-Projects -e contact@io-projects.com -p $GITEA_TOKEN -s @ioprojects -r https://git.endmove.eu/api/v1/packages/io-projectsofficial/ioprojects-ui-eslint-base/npm/
|
|
- npm publish
|
|
- npm dist-tag add @ioprojects/ui-eslint-base@${SNAPSHOT} snapshot
|