2
0

test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-02-28 21:58:16 +01:00
parent 5183879654
commit 338419dca7

View File

@@ -1,16 +1,18 @@
steps: steps:
build-and-publish: build-and-publish:
image: node:16 image: node:16
secrets: environment:
- source: git_password # Woodpecker sucht nach einem Secret namens "GITEA_TOKEN"
target: GITEA_TOKEN GITEA_TOKEN:
from_secret: GITEA_TOKEN
commands: commands:
- npm install - npm install
- npm install typescript@latest - npm install typescript@latest
- npm run build - 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 - echo "//git.familie-berner.de/api/packages/Public/npm/:_authToken=$GITEA_TOKEN" > .npmrc
- npm publish - npm publish
when: when:
branch: branch:
- master - master
event: push