mirror of
https://github.com/yanhao98/semantic-release-action.git
synced 2025-07-14 00:00:49 +08:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
a5aee42853 | |||
1ae25ac339 | |||
b08b8428f7 | |||
64aca0ecbf |
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -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: |
|
||||||
|
14
CHANGELOG.md
14
CHANGELOG.md
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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'
|
||||||
|
@ -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();
|
||||||
|
Reference in New Issue
Block a user