@cycjimmy/semantic-release-action 3.1.0 → 3.1.2
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 +4 -4
- package/docs/CHANGELOG.md +14 -0
- package/package.json +3 -3
- package/src/windUpJob.task.js +5 -5
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
GitHub Action for [Semantic Release][semantic-url].
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
|
-
### Step1: Set any [Semantic Release Configuration](https://github.com/semantic-release/semantic-release/blob/
|
|
11
|
+
### Step1: Set any [Semantic Release Configuration](https://github.com/semantic-release/semantic-release/blob/main/docs/usage/configuration.md#configuration) in your repository.
|
|
12
12
|
|
|
13
|
-
### Step2: [Add Secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) in your repository for the [Semantic Release Authentication](https://github.com/semantic-release/semantic-release/blob/
|
|
13
|
+
### Step2: [Add Secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) in your repository for the [Semantic Release Authentication](https://github.com/semantic-release/semantic-release/blob/main/docs/usage/ci-configuration.md#authentication) Environment Variables.
|
|
14
14
|
|
|
15
15
|
### Step3: Add a [Workflow File](https://help.github.com/en/articles/workflow-syntax-for-github-actions) to your repository to create custom automated processes.
|
|
16
16
|
|
|
@@ -277,8 +277,8 @@ This project is released under the [MIT License][license-url].
|
|
|
277
277
|
[semantic-url]: https://github.com/semantic-release/semantic-release
|
|
278
278
|
|
|
279
279
|
[license-image]: https://img.shields.io/npm/l/@cycjimmy/semantic-release-action.svg
|
|
280
|
-
[license-url]: https://github.com/cycjimmy/semantic-release-action/blob/
|
|
280
|
+
[license-url]: https://github.com/cycjimmy/semantic-release-action/blob/main/LICENSE
|
|
281
281
|
|
|
282
|
-
[changelog-url]: https://github.com/cycjimmy/semantic-release-action/blob/
|
|
282
|
+
[changelog-url]: https://github.com/cycjimmy/semantic-release-action/blob/main/docs/CHANGELOG.md
|
|
283
283
|
|
|
284
284
|
[github-packages-registry]: https://github.com/features/packages
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.1.2](https://github.com/cycjimmy/semantic-release-action/compare/v3.1.1...v3.1.2) (2022-10-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **actions:** update @actions/core to cope with new output ([3e7aded](https://github.com/cycjimmy/semantic-release-action/commit/3e7adedd114a31396550cb5ef5445170fae72f9e))
|
|
7
|
+
|
|
8
|
+
## [3.1.1](https://github.com/cycjimmy/semantic-release-action/compare/v3.1.0...v3.1.1) (2022-08-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* set last_release_version output even if no release has been published ([b1467cd](https://github.com/cycjimmy/semantic-release-action/commit/b1467cd17e70d963d7925a60266adb249ee2223d))
|
|
14
|
+
|
|
1
15
|
# [3.1.0](https://github.com/cycjimmy/semantic-release-action/compare/v3.0.0...v3.1.0) (2022-08-05)
|
|
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.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "GitHub Action for Semantic Release",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/cycjimmy/semantic-release-action#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@actions/core": "^1.
|
|
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",
|
|
28
|
-
"semantic-release": "^19.0.
|
|
28
|
+
"semantic-release": "^19.0.5"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/windUpJob.task.js
CHANGED
|
@@ -14,6 +14,11 @@ module.exports = async (result) => {
|
|
|
14
14
|
|
|
15
15
|
const {lastRelease, commits, nextRelease, releases} = result;
|
|
16
16
|
|
|
17
|
+
if (lastRelease.version) {
|
|
18
|
+
core.debug(`The last release was "${lastRelease.version}".`);
|
|
19
|
+
core.setOutput(outputs.last_release_version, lastRelease.version)
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
if (!nextRelease) {
|
|
18
23
|
core.debug('No release published.');
|
|
19
24
|
return Promise.resolve();
|
|
@@ -21,10 +26,6 @@ module.exports = async (result) => {
|
|
|
21
26
|
|
|
22
27
|
core.debug(`Published ${nextRelease.type} release version ${nextRelease.version} containing ${commits.length} commits.`);
|
|
23
28
|
|
|
24
|
-
if (lastRelease.version) {
|
|
25
|
-
core.debug(`The last release was "${lastRelease.version}".`);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
29
|
for (const release of releases) {
|
|
29
30
|
core.debug(`The release was published with plugin "${release.pluginName}".`);
|
|
30
31
|
}
|
|
@@ -40,5 +41,4 @@ module.exports = async (result) => {
|
|
|
40
41
|
core.setOutput(outputs.new_release_patch_version, patch);
|
|
41
42
|
core.setOutput(outputs.new_release_channel, channel);
|
|
42
43
|
core.setOutput(outputs.new_release_notes, notes);
|
|
43
|
-
core.setOutput(outputs.last_release_version, lastRelease.version)
|
|
44
44
|
};
|