@cycjimmy/semantic-release-action 3.1.1 → 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 CHANGED
@@ -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
- | last_release_version | Version of the previous release, if there was one. (e.g. `"1.2.0"`) |
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
@@ -277,8 +281,8 @@ This project is released under the [MIT License][license-url].
277
281
  [semantic-url]: https://github.com/semantic-release/semantic-release
278
282
 
279
283
  [license-image]: https://img.shields.io/npm/l/@cycjimmy/semantic-release-action.svg
280
- [license-url]: https://github.com/cycjimmy/semantic-release-action/blob/master/LICENSE
284
+ [license-url]: https://github.com/cycjimmy/semantic-release-action/blob/main/LICENSE
281
285
 
282
- [changelog-url]: https://github.com/cycjimmy/semantic-release-action/blob/master/docs/CHANGELOG.md
286
+ [changelog-url]: https://github.com/cycjimmy/semantic-release-action/blob/main/docs/CHANGELOG.md
283
287
 
284
288
  [github-packages-registry]: https://github.com/features/packages
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,17 @@
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
+
8
+ ## [3.1.2](https://github.com/cycjimmy/semantic-release-action/compare/v3.1.1...v3.1.2) (2022-10-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **actions:** update @actions/core to cope with new output ([3e7aded](https://github.com/cycjimmy/semantic-release-action/commit/3e7adedd114a31396550cb5ef5445170fae72f9e))
14
+
1
15
  ## [3.1.1](https://github.com/cycjimmy/semantic-release-action/compare/v3.1.0...v3.1.1) (2022-08-30)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cycjimmy/semantic-release-action",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "GitHub Action for Semantic Release",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "homepage": "https://github.com/cycjimmy/semantic-release-action#readme",
23
23
  "dependencies": {
24
- "@actions/core": "^1.6.0",
24
+ "@actions/core": "^1.10.0",
25
25
  "@cycjimmy/awesome-js-funcs": "^4.0.4",
26
26
  "@semantic-release/changelog": "^6.0.1",
27
27
  "@semantic-release/git": "^10.0.1",
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
- "last_release_version": "last_release_version"
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
  }
@@ -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
  };