mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-11 04:36:55 +00:00
Compare commits
4 commits
8e71605483
...
ebcbc66374
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebcbc66374 | ||
|
|
79d9929b57 | ||
|
|
2d054a5550 | ||
|
|
4267eee560 |
4 changed files with 24 additions and 10 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
## [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)
|
# [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
7
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@cycjimmy/semantic-release-action",
|
"name": "@cycjimmy/semantic-release-action",
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@cycjimmy/semantic-release-action",
|
"name": "@cycjimmy/semantic-release-action",
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
"@cycjimmy/awesome-js-funcs": "^4.0.9",
|
"@cycjimmy/awesome-js-funcs": "^4.0.9",
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
"@semantic-release/git": "^10.0.1",
|
"@semantic-release/git": "^10.0.1",
|
||||||
"semantic-release": "^24.2.7"
|
"semantic-release": "^24.2.9"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
|
|
@ -5299,6 +5299,7 @@
|
||||||
"version": "24.2.9",
|
"version": "24.2.9",
|
||||||
"resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-24.2.9.tgz",
|
"resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-24.2.9.tgz",
|
||||||
"integrity": "sha512-phCkJ6pjDi9ANdhuF5ElS10GGdAKY6R1Pvt9lT3SFhOwM4T7QZE7MLpBDbNruUx/Q3gFD92/UOFringGipRqZA==",
|
"integrity": "sha512-phCkJ6pjDi9ANdhuF5ElS10GGdAKY6R1Pvt9lT3SFhOwM4T7QZE7MLpBDbNruUx/Q3gFD92/UOFringGipRqZA==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@semantic-release/commit-analyzer": "^13.0.0-beta.1",
|
"@semantic-release/commit-analyzer": "^13.0.0-beta.1",
|
||||||
"@semantic-release/error": "^4.0.0",
|
"@semantic-release/error": "^4.0.0",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@cycjimmy/semantic-release-action",
|
"name": "@cycjimmy/semantic-release-action",
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"description": "GitHub Action for Semantic Release",
|
"description": "GitHub Action for Semantic Release",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
@ -26,6 +26,6 @@
|
||||||
"@cycjimmy/awesome-js-funcs": "^4.0.9",
|
"@cycjimmy/awesome-js-funcs": "^4.0.9",
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
"@semantic-release/git": "^10.0.1",
|
"@semantic-release/git": "^10.0.1",
|
||||||
"semantic-release": "^24.2.7"
|
"semantic-release": "^24.2.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,20 @@ const outputs = require('./outputs.json');
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
module.exports = async (result) => {
|
module.exports = async (result) => {
|
||||||
if (!result) {
|
const resolved = await result;
|
||||||
|
if (!resolved) {
|
||||||
core.debug('No release published.');
|
core.debug('No release published.');
|
||||||
return Promise.resolve();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const {lastRelease, commits, nextRelease, releases} = await result;
|
const {
|
||||||
|
lastRelease = {},
|
||||||
|
commits = [],
|
||||||
|
nextRelease = {},
|
||||||
|
releases = [],
|
||||||
|
} = resolved;
|
||||||
|
|
||||||
if (lastRelease.version) {
|
if (lastRelease?.version) {
|
||||||
core.debug(`The last release was "${lastRelease.version}".`);
|
core.debug(`The last release was "${lastRelease.version}".`);
|
||||||
core.setOutput(outputs.last_release_version, lastRelease.version);
|
core.setOutput(outputs.last_release_version, lastRelease.version);
|
||||||
core.setOutput(outputs.last_release_git_head, lastRelease.gitHead);
|
core.setOutput(outputs.last_release_git_head, lastRelease.gitHead);
|
||||||
|
|
@ -23,7 +29,7 @@ module.exports = async (result) => {
|
||||||
|
|
||||||
if (!nextRelease) {
|
if (!nextRelease) {
|
||||||
core.debug('No release published.');
|
core.debug('No release published.');
|
||||||
return Promise.resolve();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
core.debug(`Published ${nextRelease.type} release version ${nextRelease.version} containing ${commits.length} commits.`);
|
core.debug(`Published ${nextRelease.type} release version ${nextRelease.version} containing ${commits.length} commits.`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue