From c24007e42c1c113e1e8191af4621dbc954c4a711 Mon Sep 17 00:00:00 2001 From: Matthias Berner Date: Sat, 28 Feb 2026 21:17:22 +0100 Subject: [PATCH] upd --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..09bd017 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 4510103..fc2f50b 100644 --- a/package.json +++ b/package.json @@ -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/" } }