5
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-11-07 10:46:56 +00:00

Merge pull request #82 from mKeRix/last-release-version

feat: add output for last release version
This commit is contained in:
Geoffrey.C 2021-10-15 10:43:20 +08:00 committed by GitHub
commit 9089e66e36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -216,6 +216,7 @@ steps:
| new_release_patch_version | Patch version of the new release. (e.g. `0`) |
| new_release_channel | The distribution channel on which the last release was initially made available (undefined for the default distribution channel). |
| new_release_notes | The release notes for the new release. |
| last_release_version | Version of the previous release, if there was one. (e.g. `1.2.0`) |
#### Using Output Variables:
```yaml

View file

@ -5,5 +5,6 @@
"new_release_minor_version": "new_release_minor_version",
"new_release_patch_version": "new_release_patch_version",
"new_release_channel": "new_release_channel",
"new_release_notes": "new_release_notes"
"new_release_notes": "new_release_notes",
"last_release_version": "last_release_version"
}

View file

@ -40,4 +40,5 @@ module.exports = async (result) => {
core.setOutput(outputs.new_release_patch_version, patch);
core.setOutput(outputs.new_release_channel, channel);
core.setOutput(outputs.new_release_notes, notes);
core.setOutput(outputs.last_release_version, lastRelease.version)
};