This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user