2023-11-04 20:36:50 +01:00
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
evaluate: '(CI_COMMIT_BRANCH == "devel" && not (CI_COMMIT_MESSAGE startsWith "release")) || (CI_COMMIT_BRANCH == "main" && not (CI_COMMIT_MESSAGE startsWith "release(stable)"))'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
semantic-release:
|
|
|
|
image: node:latest
|
2024-12-29 19:43:00 +01:00
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: gitea_token
|
|
|
|
GIT_CREDENTIALS:
|
|
|
|
from_secret: git_credentials
|
2024-12-30 19:13:57 +01:00
|
|
|
WOODPECKER_GPG:
|
|
|
|
from_secret: woodpecker_gpg
|
|
|
|
WOODPECKER_OWNERTRUST:
|
|
|
|
from_secret: woodpecker_ownertrust
|
|
|
|
GIT_AUTHOR_NAME: "semantic-release"
|
|
|
|
GIT_AUTHOR_EMAIL: "ci@icikowski.pl"
|
|
|
|
GIT_COMMITTER_NAME: "Woodpecker CI"
|
|
|
|
GIT_COMMITTER_EMAIL: "ci@icikowski.pl"
|
2023-11-04 20:36:50 +01:00
|
|
|
commands:
|
2024-12-30 19:13:57 +01:00
|
|
|
- echo $WOODPECKER_GPG | base64 -d > /tmp/woodpecker.gpg
|
|
|
|
- echo $WOODPECKER_OWNERTRUST > /tmp/woodpecker-ownertrust.txt
|
|
|
|
- gpg -q --import /tmp/woodpecker.gpg
|
|
|
|
- gpg --import-ownertrust /tmp/woodpecker-ownertrust.txt
|
|
|
|
- git config --global user.signingkey BE8610DF8C393C56F3428A4D3E8CD051908CB569
|
|
|
|
- git config --global commit.gpgsign true
|
|
|
|
- git config --global tag.forceSignAnnotated true
|
2023-11-04 20:36:50 +01:00
|
|
|
- npm i
|
|
|
|
- npm run release
|