chore(ci): configure release automation
This commit is contained in:
@@ -7,13 +7,18 @@ depends_on:
|
||||
- ci
|
||||
|
||||
clone:
|
||||
depth: 0
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
depth: 0
|
||||
partial: false
|
||||
tags: true
|
||||
|
||||
steps:
|
||||
release:
|
||||
image: node:24-bookworm-slim
|
||||
environment:
|
||||
GITEA_PACKAGE_TOKEN:
|
||||
NPM_TOKEN:
|
||||
from_secret: gitea_package_token
|
||||
GITEA_REGISTRY_USERNAME:
|
||||
from_secret: gitea_registry_username
|
||||
@@ -27,7 +32,7 @@ steps:
|
||||
- git config user.email "woodpecker-ci@mifi.dev"
|
||||
- git remote set-url origin "https://${GITEA_REGISTRY_USERNAME}:${GITEA_RELEASE_TOKEN}@git.mifi.dev/mifi/logger.git"
|
||||
- npm config set @mifi:registry https://git.mifi.dev/api/packages/mifi/npm/
|
||||
- npm config set -- //git.mifi.dev/api/packages/mifi/npm/:_authToken "$GITEA_PACKAGE_TOKEN"
|
||||
- npm config set -- //git.mifi.dev/api/packages/mifi/npm/:_authToken "$NPM_TOKEN"
|
||||
- pnpm release
|
||||
|
||||
notify-release-failure:
|
||||
|
||||
Reference in New Issue
Block a user