@cycjimmy/semantic-release-action 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/action.yml +8 -0
- package/docs/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/outputs.json +6 -2
- package/src/windUpJob.task.js +7 -2
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
GitHub Action for [Semantic Release][semantic-url].
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
|
-
### Step1: Set any [Semantic Release Configuration](https://github.com/semantic-release/semantic-release/blob/
|
|
11
|
+
### Step1: Set any [Semantic Release Configuration](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration) in your repository.
|
|
12
12
|
|
|
13
|
-
### Step2: [Add Secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) in your repository for the [Semantic Release Authentication](https://github.com/semantic-release/semantic-release/blob/
|
|
13
|
+
### Step2: [Add Secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) in your repository for the [Semantic Release Authentication](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/ci-configuration.md#authentication) Environment Variables.
|
|
14
14
|
|
|
15
15
|
### Step3: Add a [Workflow File](https://help.github.com/en/articles/workflow-syntax-for-github-actions) to your repository to create custom automated processes.
|
|
16
16
|
|
|
@@ -236,7 +236,11 @@ steps:
|
|
|
236
236
|
| new_release_patch_version | Patch version of the new release. (e.g. `"0"`) |
|
|
237
237
|
| new_release_channel | The distribution channel on which the last release was initially made available (undefined for the default distribution channel). |
|
|
238
238
|
| new_release_notes | The release notes for the new release. |
|
|
239
|
-
|
|
|
239
|
+
| new_release_git_head | The sha of the last commit being part of the new release |
|
|
240
|
+
| new_release_git_tag | The Git tag associated with the new release. |
|
|
241
|
+
| last_release_version | Version of the previous release, if there was one. (e.g. `1.2.0`) |
|
|
242
|
+
| last_release_git_head | The sha of the last commit being part of the last release, if there was one. |
|
|
243
|
+
| last_release_git_tag | The Git tag associated with the last release, if there was one. | |
|
|
240
244
|
|
|
241
245
|
#### Using Output Variables:
|
|
242
246
|
```yaml
|
package/action.yml
CHANGED
|
@@ -41,8 +41,16 @@ outputs:
|
|
|
41
41
|
description: 'The distribution channel on which the last release was initially made available (undefined for the default distribution channel).'
|
|
42
42
|
new_release_notes:
|
|
43
43
|
description: 'The release notes for the new release.'
|
|
44
|
+
new_release_git_head:
|
|
45
|
+
description: 'The sha of the last commit being part of the new release.'
|
|
46
|
+
new_release_git_tag:
|
|
47
|
+
description: 'The Git tag associated with the new release.'
|
|
44
48
|
last_release_version:
|
|
45
49
|
description: 'Version of the previous release, if there was one.'
|
|
50
|
+
last_release_git_head:
|
|
51
|
+
description: 'The sha of the last commit being part of the last release, if there was one.'
|
|
52
|
+
last_release_git_tag:
|
|
53
|
+
description: 'The Git tag associated with the last release, if there was one.'
|
|
46
54
|
runs:
|
|
47
55
|
using: 'node16'
|
|
48
56
|
main: 'index.js'
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.2.0](https://github.com/cycjimmy/semantic-release-action/compare/v3.1.2...v3.2.0) (2022-11-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* added gitHead and gitTag outputs ([385af4f](https://github.com/cycjimmy/semantic-release-action/commit/385af4fa1ceaf60ec10e35b950e9c1cbb9375a8c))
|
|
7
|
+
|
|
1
8
|
## [3.1.2](https://github.com/cycjimmy/semantic-release-action/compare/v3.1.1...v3.1.2) (2022-10-19)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/outputs.json
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
"new_release_minor_version": "new_release_minor_version",
|
|
6
6
|
"new_release_patch_version": "new_release_patch_version",
|
|
7
7
|
"new_release_channel": "new_release_channel",
|
|
8
|
-
"new_release_notes": "new_release_notes",
|
|
9
|
-
"
|
|
8
|
+
"new_release_notes": "new_release_notes",
|
|
9
|
+
"new_release_git_head": "new_release_git_head",
|
|
10
|
+
"new_release_git_tag": "new_release_git_tag",
|
|
11
|
+
"last_release_version": "last_release_version",
|
|
12
|
+
"last_release_git_head": "last_release_git_head",
|
|
13
|
+
"last_release_git_tag": "last_release_git_tag"
|
|
10
14
|
}
|
package/src/windUpJob.task.js
CHANGED
|
@@ -30,7 +30,7 @@ module.exports = async (result) => {
|
|
|
30
30
|
core.debug(`The release was published with plugin "${release.pluginName}".`);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
const {version, channel, notes} = nextRelease;
|
|
33
|
+
const {version, channel, notes, gitHead, gitTag} = nextRelease;
|
|
34
34
|
const [major, minor, patch] = version.split(/\.|-|\s/g, 3);
|
|
35
35
|
|
|
36
36
|
// set outputs
|
|
@@ -40,5 +40,10 @@ module.exports = async (result) => {
|
|
|
40
40
|
core.setOutput(outputs.new_release_minor_version, minor);
|
|
41
41
|
core.setOutput(outputs.new_release_patch_version, patch);
|
|
42
42
|
core.setOutput(outputs.new_release_channel, channel);
|
|
43
|
-
core.setOutput(outputs.new_release_notes, notes);
|
|
43
|
+
core.setOutput(outputs.new_release_notes, notes);
|
|
44
|
+
core.setOutput(outputs.new_release_git_head, gitHead);
|
|
45
|
+
core.setOutput(outputs.new_release_git_tag, gitTag);
|
|
46
|
+
core.setOutput(outputs.last_release_version, lastRelease.version);
|
|
47
|
+
core.setOutput(outputs.last_release_git_head, lastRelease.gitHead);
|
|
48
|
+
core.setOutput(outputs.last_release_git_tag, lastRelease.gitTag);
|
|
44
49
|
};
|