4 Commits

Author SHA1 Message Date
a5aee42853 chore(release): 1.2.0 [skip ci]
# [1.2.0](https://github.com/yanhao98/semantic-release-action/compare/v1.1.1...v1.2.0) (2024-10-09)

### Features

* log semantic release result in a grouped output ([1ae25ac](1ae25ac339))
2024-10-09 12:05:27 +08:00
1ae25ac339 feat: log semantic release result in a grouped output 2024-10-09 12:04:57 +08:00
b08b8428f7 chore(release): 1.1.1 [skip ci]
## [1.1.1](https://github.com/yanhao98/semantic-release-action/compare/v1.1.0...v1.1.1) (2024-10-06)

### Bug Fixes

* update action reference and enhance documentation ([64aca0e](64aca0ecbf))
2024-10-06 23:50:38 +08:00
64aca0ecbf fix: update action reference and enhance documentation 2024-10-06 23:50:10 +08:00
5 changed files with 22 additions and 2 deletions

View File

@ -19,7 +19,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: yanhao98/semantic-release-example@main - uses: yanhao98/semantic-release-action@main
id: release id: release
- name: Print the new release version - name: Print the new release version
run: | run: |

View File

@ -1,3 +1,17 @@
# [1.2.0](https://github.com/yanhao98/semantic-release-action/compare/v1.1.1...v1.2.0) (2024-10-09)
### Features
* log semantic release result in a grouped output ([1ae25ac](https://github.com/yanhao98/semantic-release-action/commit/1ae25ac339f009d3fc5d4da0aa5ece8d15552826))
## [1.1.1](https://github.com/yanhao98/semantic-release-action/compare/v1.1.0...v1.1.1) (2024-10-06)
### Bug Fixes
* update action reference and enhance documentation ([64aca0e](https://github.com/yanhao98/semantic-release-action/commit/64aca0ecbfe377aeb2ad1adf2efc95abbc8d2292))
# [1.1.0](https://github.com/yanhao98/semantic-release-example/compare/v1.0.0...v1.1.0) (2024-10-06) # [1.1.0](https://github.com/yanhao98/semantic-release-example/compare/v1.0.0...v1.1.0) (2024-10-06)

View File

@ -16,6 +16,7 @@ BREAKING CHANGE:
## 参考 ## 参考
--- ---
- https://github.dev/cycjimmy/semantic-release-action
- [Can I run semantic-release on my local machine rather than on a CI server?](https://semantic-release.gitbook.io/semantic-release/support/faq#can-i-run-semantic-release-on-my-local-machine-rather-than-on-a-ci-server) - [Can I run semantic-release on my local machine rather than on a CI server?](https://semantic-release.gitbook.io/semantic-release/support/faq#can-i-run-semantic-release-on-my-local-machine-rather-than-on-a-ci-server)
- [Can I use semantic-release to publish non-JavaScript packages?](https://semantic-release.gitbook.io/semantic-release/support/faq#can-i-use-semantic-release-to-publish-non-javascript-packages) - [Can I use semantic-release to publish non-JavaScript packages?](https://semantic-release.gitbook.io/semantic-release/support/faq#can-i-use-semantic-release-to-publish-non-javascript-packages)
- [pre-release-branches](https://semantic-release.gitbook.io/semantic-release/usage/workflow-configuration#pre-release-branches) - [pre-release-branches](https://semantic-release.gitbook.io/semantic-release/usage/workflow-configuration#pre-release-branches)

View File

@ -5,8 +5,10 @@ branding:
icon: 'heart' icon: 'heart'
color: 'red' color: 'red'
outputs: outputs:
next_release_published:
description: '新版本是否已发布'
next_release_version: next_release_version:
description: 'Version of the new release' description: '新版本号'
runs: runs:
# pre: 'index.mjs' # pre: 'index.mjs'
using: 'node20' using: 'node20'

View File

@ -39,6 +39,9 @@ async function runRelease() {
} else { } else {
core.setOutput('next_release_published', 'false'); core.setOutput('next_release_published', 'false');
} }
await core.group('Semantic Release Result', async () => {
core.info(`result :>> ${JSON.stringify(result, null, 2)}`);
});
} }
if (process.env.CI) await installDependencies(); if (process.env.CI) await installDependencies();