-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added exmaple gitlab valhalla pnpm template (#36)
* Added example pnpm valhalla template * README update --------- Co-authored-by: Mateusz Witkowski <mateusz.witkowski@softnet.com.pl>
- Loading branch information
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This file is used by valhalla tool to create release 🌌 | ||
# Visit https://github.com/logchange/valhalla and leave a star 🌟 | ||
# More info about configuration you can find https://github.com/logchange/valhalla#%EF%B8%8F-configuration ⬅️ | ||
|
||
git_host: gitlab | ||
|
||
variables: | ||
PACKAGE_NAME: "my-project" | ||
|
||
commit_before_release: | ||
enabled: True | ||
username: "ReleaseBot" | ||
email: "release@logchange.dev" | ||
msg: "Preparation for releasing version {VERSION}" | ||
before: | ||
- pnpm pkg set version={VERSION} | ||
- logchange release --versionToRelease "{VERSION}" | ||
|
||
release: | ||
name: "Release name {VERSION}" | ||
description: | ||
from_command: "cat changelog/v{VERSION}/version-summary.md" | ||
assets: | ||
links: | ||
- name: NPM Package | ||
url: https://registry.my/#browse/browse:npm-private:{PACKAGE_NAME}%2F{PACKAGE_NAME}-{VERSION}.tgz | ||
link_type: package | ||
|
||
commit_after_release: | ||
enabled: True | ||
username: "ReleaseBot" | ||
email: "release@logchange.dev" | ||
msg: "[CI SKIP] Preparation for next release iteration" | ||
before: | ||
# https://www.mojohaus.org/versions/versions-maven-plugin/set-mojo.html | ||
# https://www.mojohaus.org/build-helper-maven-plugin/parse-version-mojo.html | ||
# Update to next minor version by default f.e. 24.1.0 -> 24.2.0 and handle also 24.2.3 -> 24.3.0 | ||
- pnpm version minor --no-git-tag-version | ||
- pnpm pkg get version | sed -E 's/^"(.*)"$/\1-SNAPSHOT/' | xargs -I {} pnpm pkg set version={} | ||
|
||
|
||
merge_request: | ||
enabled: True | ||
title: "Releasing version {VERSION} and preparation for next iteration" | ||
reviewers: | ||
- marwin1991 | ||
- witx98 |