diff --git a/examples/README.md b/examples/README.md index 7cb5a86..44c95f4 100644 --- a/examples/README.md +++ b/examples/README.md @@ -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) \ No newline at end of file + - 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) \ No newline at end of file diff --git a/examples/valhalla-gitlab-pnpm-logchange.yml b/examples/valhalla-gitlab-pnpm-logchange.yml new file mode 100644 index 0000000..b5402f4 --- /dev/null +++ b/examples/valhalla-gitlab-pnpm-logchange.yml @@ -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