This commit is contained in:
2026-02-28 21:17:22 +01:00
parent 7698040f1c
commit c24007e42c
2 changed files with 34 additions and 1 deletions

33
.drone.yml Normal file
View File

@@ -0,0 +1,33 @@
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 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
---
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

View File

@@ -66,6 +66,6 @@
},
"version": "1.1.9",
"publishConfig": {
"registry": "https://git.familie-berner.de/api/packages/Open/npm/"
"registry": "https://git.familie-berner.de/api/packages/Public/npm/"
}
}