Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
f14a366f1f |
1 changed files with 36 additions and 0 deletions
36
.woodpecker/release.yaml
Normal file
36
.woodpecker/release.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
steps:
|
||||||
|
- name: 'semantic-release'
|
||||||
|
image: "docker.io/node"
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
- rc
|
||||||
|
environment:
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: CODEBERG_TOKEN
|
||||||
|
commands:
|
||||||
|
- export GITEA_URL="$${CI_FORGE_URL}"
|
||||||
|
- git config credential.helper '!f() { sleep 1; echo "username=${CI_OWNER}"; echo "password=${GITEA_TOKEN}"; }; f'
|
||||||
|
- npm install semantic-release conventional-changelog-conventionalcommits @semantic-release/changelog @semantic-release/git @shamsievartyom/semantic-release-gitea
|
||||||
|
## gitlab release should be runned, so we need @git with skipCi=pushOption
|
||||||
|
## see: https://github.com/semantic-release/git/pull/264
|
||||||
|
- |
|
||||||
|
[ ! -f .releaserc ] && cat > .releaserc << EOF
|
||||||
|
branches:
|
||||||
|
- name: "main"
|
||||||
|
- name: "master"
|
||||||
|
- name: "rc"
|
||||||
|
prerelease: true
|
||||||
|
plugins:
|
||||||
|
- "@semantic-release/commit-analyzer"
|
||||||
|
- preset: "conventionalcommits"
|
||||||
|
|
||||||
|
- "@semantic-release/release-notes-generator"
|
||||||
|
- preset: "conventionalcommits"
|
||||||
|
|
||||||
|
- "@shamsievartyom/semantic-release-gitea"
|
||||||
|
|
||||||
|
EOF
|
||||||
|
- "npx semantic-release"
|
Loading…
Add table
Reference in a new issue