Skip to content

Commit

Permalink
Added exmaple gitlab valhalla pnpm template (#36)
Browse files Browse the repository at this point in the history
* Added example pnpm valhalla template

* README update

---------

Co-authored-by: Mateusz Witkowski <mateusz.witkowski@softnet.com.pl>
  • Loading branch information
witx98 and Mateusz Witkowski authored Jan 27, 2025
1 parent 1239d5a commit b61c1ac
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
- [gitlab-maven-logchange](https://github.com/logchange/valhalla/blob/master/examples/valhalla-gitlab-maven-logchange.yml)
- Using GitLab (tested at self-hosted, but probably doesn't matter)
- Maven Project
- Changelog developed with [logchange](https://github.com/logchange/logchange)
- Changelog developed with [logchange](https://github.com/logchange/logchange)

- [gitlab-pnpm-logchange](https://github.com/logchange/valhalla/blob/master/examples/valhalla-gitlab-pnpm-logchange.yml)
- Using GitLab (tested at self-hosted, but probably doesn't matter)
- Pnpm Project
- Changelog developed with [logchange](https://github.com/logchange/logchange)
47 changes: 47 additions & 0 deletions examples/valhalla-gitlab-pnpm-logchange.yml
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

0 comments on commit b61c1ac

Please # to comment.