5
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-11-11 20:53:50 +00:00

Compare commits

..

No commits in common. "ebcbc663748eae8da59a127a7d8b8e22f82514b2" and "8e7160548328eead2dccfb340f91155ac609d1f5" have entirely different histories.

4 changed files with 10 additions and 24 deletions

View file

@ -1,10 +1,3 @@
## [5.0.1](https://github.com/cycjimmy/semantic-release-action/compare/v5.0.0...v5.0.1) (2025-10-09)
### Bug Fixes
* improves result handling in windUpJob.task.js ([4267eee](https://github.com/cycjimmy/semantic-release-action/commit/4267eee56034cc3ee6f2fef9bdc3cc125ca073db))
# [5.0.0](https://github.com/cycjimmy/semantic-release-action/compare/v4.2.2...v5.0.0) (2025-08-30)

7
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "@cycjimmy/semantic-release-action",
"version": "5.0.1",
"version": "5.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@cycjimmy/semantic-release-action",
"version": "5.0.1",
"version": "5.0.0",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.1",
@ -14,7 +14,7 @@
"@cycjimmy/awesome-js-funcs": "^4.0.9",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"semantic-release": "^24.2.9"
"semantic-release": "^24.2.7"
}
},
"node_modules/@actions/core": {
@ -5299,7 +5299,6 @@
"version": "24.2.9",
"resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-24.2.9.tgz",
"integrity": "sha512-phCkJ6pjDi9ANdhuF5ElS10GGdAKY6R1Pvt9lT3SFhOwM4T7QZE7MLpBDbNruUx/Q3gFD92/UOFringGipRqZA==",
"license": "MIT",
"dependencies": {
"@semantic-release/commit-analyzer": "^13.0.0-beta.1",
"@semantic-release/error": "^4.0.0",

View file

@ -1,6 +1,6 @@
{
"name": "@cycjimmy/semantic-release-action",
"version": "5.0.1",
"version": "5.0.0",
"description": "GitHub Action for Semantic Release",
"main": "index.js",
"scripts": {
@ -26,6 +26,6 @@
"@cycjimmy/awesome-js-funcs": "^4.0.9",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"semantic-release": "^24.2.9"
"semantic-release": "^24.2.7"
}
}

View file

@ -7,20 +7,14 @@ const outputs = require('./outputs.json');
* @returns {Promise<void>}
*/
module.exports = async (result) => {
const resolved = await result;
if (!resolved) {
if (!result) {
core.debug('No release published.');
return;
return Promise.resolve();
}
const {
lastRelease = {},
commits = [],
nextRelease = {},
releases = [],
} = resolved;
const {lastRelease, commits, nextRelease, releases} = await result;
if (lastRelease?.version) {
if (lastRelease.version) {
core.debug(`The last release was "${lastRelease.version}".`);
core.setOutput(outputs.last_release_version, lastRelease.version);
core.setOutput(outputs.last_release_git_head, lastRelease.gitHead);
@ -29,7 +23,7 @@ module.exports = async (result) => {
if (!nextRelease) {
core.debug('No release published.');
return;
return Promise.resolve();
}
core.debug(`Published ${nextRelease.type} release version ${nextRelease.version} containing ${commits.length} commits.`);