forked from Mirrors/node-red-contrib-mi-devices
All checks were successful
continuous-integration/drone/push Build is passing
37 lines
689 B
YAML
37 lines
689 B
YAML
---
|
|
kind: secret
|
|
name: git_username
|
|
get:
|
|
path: secret/data/gitea
|
|
name: api_access_user
|
|
|
|
---
|
|
kind: secret
|
|
name: git_password
|
|
get:
|
|
path: secret/data/gitea
|
|
name: api_access_token
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build-and-publish
|
|
image: node:16
|
|
environment:
|
|
GITEA_TOKEN:
|
|
from_secret: git_password
|
|
commands:
|
|
- npm install
|
|
- npm install typescript@latest
|
|
- npm run build
|
|
# Erstellt die Authentifizierung für die Registry (URL aus package.json)
|
|
- echo "//git.familie-berner.de/api/packages/Public/npm/:_authToken=$GITEA_TOKEN" > .npmrc
|
|
- npm publish
|
|
when:
|
|
branch:
|
|
- master
|