From 338419dca712e153d062c4fbdf45c44e91a5356f Mon Sep 17 00:00:00 2001 From: Matthias Berner Date: Sat, 28 Feb 2026 21:58:16 +0100 Subject: [PATCH] test --- .woodpecker/pipeline.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.woodpecker/pipeline.yml b/.woodpecker/pipeline.yml index c658237..d0e14e1 100644 --- a/.woodpecker/pipeline.yml +++ b/.woodpecker/pipeline.yml @@ -1,16 +1,18 @@ steps: build-and-publish: image: node:16 - secrets: - - source: git_password - target: GITEA_TOKEN + environment: + # Woodpecker sucht nach einem Secret namens "GITEA_TOKEN" + GITEA_TOKEN: + from_secret: GITEA_TOKEN commands: - npm install - npm install typescript@latest - npm run build - # Erstellt die Authentifizierung für die Registry (URL aus package.json) + # Nutzt die Variable aus dem Environment - echo "//git.familie-berner.de/api/packages/Public/npm/:_authToken=$GITEA_TOKEN" > .npmrc - npm publish when: branch: - - master \ No newline at end of file + - master + event: push \ No newline at end of file