eslint-config/.drone.yml

29 lines
973 B
YAML
Raw Normal View History

---
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-12 21:13:08 +02:00
- SNAPSHOT="${VERSION}-snapshot.${DRONE_BUILD_NUMBER}"
2023-04-12 21:09:36 +02:00
- echo $VERSION
- echo $SNAPSHOT
- npm ci
2023-04-12 21:09:36 +02:00
- npm version $SNAPSHOT
2023-04-12 21:26:06 +02:00
# - npm config set @ioprojects:registry https://git.endmove.eu/api/packages/io-projectsofficial/npm/ -g
# - npm config set -- '//git.endmove.eu/api/packages/io-projectsofficial/npm/${GITEA_TOKEN}' -g
- npm install -g @kenan/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