2
0
Files

37 lines
689 B
YAML
Raw Permalink Normal View History

2026-02-28 21:23:04 +01:00
---
kind: secret
name: git_username
get:
path: secret/data/gitea
name: api_access_user
---
kind: secret
name: git_password
get:
path: secret/data/gitea
name: api_access_token
---
2026-02-28 21:17:22 +01:00
kind: pipeline
type: docker
name: default
steps:
- name: build-and-publish
image: node:16
environment:
GITEA_TOKEN:
from_secret: git_password
commands:
- npm install
2026-02-28 21:31:07 +01:00
- npm install typescript@latest
2026-02-28 21:17:22 +01:00
- 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