16 lines
448 B
YAML
16 lines
448 B
YAML
steps:
|
|
build-and-publish:
|
|
image: node:16
|
|
secrets:
|
|
- source: git_password
|
|
target: GITEA_TOKEN
|
|
commands:
|
|
- npm install
|
|
- npm install typescript@latest
|
|
- 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 |