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