Compare commits

..

55 commits
v4.2.0 ... main

Author SHA1 Message Date
Geoffrey.C
acb3d1c023
Merge pull request #282 from cycjimmy/dependabot/npm_and_yarn/multi-5dbde75f7e
Some checks failed
Release / release (push) Has been cancelled
Test Release / test-semantic-latest (push) Has been cancelled
Test Release / test-semantic-v15 (push) Has been cancelled
build(deps): bump tar and npm
2026-01-26 14:12:47 +08:00
Geoffrey.C
7922aa4386
Merge pull request #281 from cycjimmy/dependabot/npm_and_yarn/lodash-4.17.23
build(deps): bump lodash from 4.17.21 to 4.17.23
2026-01-26 14:12:35 +08:00
dependabot[bot]
6e9611f599
build(deps): bump tar and npm
Removes [tar](https://github.com/isaacs/node-tar). It's no longer used after updating ancestor dependency [npm](https://github.com/npm/cli). These dependencies need to be updated together.


Removes `tar`

Updates `npm` from 11.7.0 to 11.8.0
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v11.7.0...v11.8.0)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 
  dependency-type: indirect
- dependency-name: npm
  dependency-version: 11.8.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-23 05:46:15 +00:00
dependabot[bot]
7aa5b5ea90
build(deps): bump lodash from 4.17.21 to 4.17.23
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-23 05:46:12 +00:00
Geoffrey.C
cabafd6705
Merge pull request #280 from cycjimmy/dependabot/npm_and_yarn/lodash-es-4.17.23
build(deps): bump lodash-es from 4.17.21 to 4.17.23
2026-01-23 13:45:15 +08:00
dependabot[bot]
8dc9474c5c
build(deps): bump lodash-es from 4.17.21 to 4.17.23
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash-es
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-21 23:13:09 +00:00
Geoffrey.C
c894d87299
Merge pull request #279 from cycjimmy/dependabot/npm_and_yarn/multi-79dce8efd9
build(deps): bump glob and npm
2026-01-12 10:31:23 +08:00
dependabot[bot]
23f28d6b9a
build(deps): bump glob and npm
Removes [glob](https://github.com/isaacs/node-glob). It's no longer used after updating ancestor dependency [npm](https://github.com/npm/cli). These dependencies need to be updated together.


Removes `glob`

Updates `npm` from 11.6.3 to 11.7.0
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v11.6.3...v11.7.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 
  dependency-type: indirect
- dependency-name: npm
  dependency-version: 11.7.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-12 01:50:46 +00:00
Geoffrey.C
8c3e4f586e
Merge pull request #278 from cycjimmy/dependabot/npm_and_yarn/actions/core-2.0.2
build(deps): bump @actions/core from 2.0.1 to 2.0.2
2026-01-12 09:49:41 +08:00
dependabot[bot]
5b8d1ccbaa
build(deps): bump @actions/core from 2.0.1 to 2.0.2
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 2.0.1 to 2.0.2.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-09 00:01:58 +00:00
Geoffrey.C
e0b75dd3b9
Merge pull request #277 from cycjimmy/dependabot/npm_and_yarn/actions/core-2.0.1
build(deps): bump @actions/core from 2.0.0 to 2.0.1
2025-12-12 13:42:40 +08:00
dependabot[bot]
8ebfa72b1f
build(deps): bump @actions/core from 2.0.0 to 2.0.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 2.0.0 to 2.0.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/@actions/artifact@2.0.1/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 00:01:10 +00:00
Geoffrey.C
7aabe5626b
Merge pull request #276 from cycjimmy/dependabot/npm_and_yarn/actions/core-2.0.0
build(deps): bump @actions/core from 1.11.1 to 2.0.0
2025-12-10 10:50:34 +08:00
dependabot[bot]
132e967011
build(deps): bump @actions/core from 1.11.1 to 2.0.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.11.1 to 2.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-10 00:01:06 +00:00
Geoffrey.C
fb28efae68
Merge pull request #275 from cycjimmy/dependabot/npm_and_yarn/multi-01034abe0a
build(deps): bump tar and npm
2025-11-24 17:06:37 +08:00
dependabot[bot]
2d010c7798
build(deps): bump tar and npm
Removes [tar](https://github.com/isaacs/node-tar). It's no longer used after updating ancestor dependency [npm](https://github.com/npm/cli). These dependencies need to be updated together.


Removes `tar`

Updates `npm` from 11.6.2 to 11.6.3
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](https://github.com/npm/cli/compare/v11.6.2...v11.6.3)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 
  dependency-type: indirect
- dependency-name: npm
  dependency-version: 11.6.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-22 17:00:28 +00:00
Geoffrey.C
ed948e207e
Merge pull request #274 from cycjimmy/dependabot/github_actions/actions/checkout-6
build(deps): bump actions/checkout from 5 to 6
2025-11-23 00:59:21 +08:00
dependabot[bot]
14d79a8239
build(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 00:01:39 +00:00
semantic-release-bot
b12c8f6015 chore(release): 6.0.0 [skip ci]
# [6.0.0](https://github.com/cycjimmy/semantic-release-action/compare/v5.0.2...v6.0.0) (2025-11-17)

### Features

* **deps:** update semantic-release to version 25 ([9246c0b](9246c0bd17))

### BREAKING CHANGES

* **deps:** Update semantic-release to version 25
2025-11-17 07:36:31 +00:00
Geoffrey.C
f80bc73384
Merge pull request #273 from cycjimmy/feat-update-semantic-release-to-version-25
feat(deps): update semantic-release to version 25
2025-11-17 15:36:11 +08:00
Geoffrey.C
089129701b docs(readme): update semantic-release-action to v6
update semantic-release-action to v6
2025-11-15 21:56:41 +08:00
Geoffrey.C
9246c0bd17 feat(deps): update semantic-release to version 25
Update semantic-release to version 25

BREAKING CHANGE: Update semantic-release to version 25
2025-11-15 21:52:14 +08:00
Geoffrey.C
e878abf189
Merge pull request #272 from cycjimmy/dependabot/npm_and_yarn/js-yaml-4.1.1
build(deps): bump js-yaml from 4.1.0 to 4.1.1
2025-11-15 21:07:44 +08:00
dependabot[bot]
acd6d5df2b
build(deps): bump js-yaml from 4.1.0 to 4.1.1
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.0...4.1.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-15 10:50:34 +00:00
Geoffrey.C
100d1fb3a3
Merge pull request #270 from cycjimmy/dependabot/npm_and_yarn/actions/io-2.0.0
build(deps): bump @actions/io from 1.1.3 to 2.0.0
2025-11-13 18:40:31 +08:00
dependabot[bot]
ea00aee834
build(deps): bump @actions/io from 1.1.3 to 2.0.0
Bumps [@actions/io](https://github.com/actions/toolkit/tree/HEAD/packages/io) from 1.1.3 to 2.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/io/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/io)

---
updated-dependencies:
- dependency-name: "@actions/io"
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-03 00:01:13 +00:00
Geoffrey.C
e03fa181e1
Merge pull request #266 from cycjimmy/dependabot/github_actions/actions/setup-node-6
build(deps): bump actions/setup-node from 5 to 6
2025-10-17 10:24:57 +08:00
dependabot[bot]
36bdefbcf6
build(deps): bump actions/setup-node from 5 to 6
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 00:01:37 +00:00
semantic-release-bot
ba330626c4 chore(release): 5.0.2 [skip ci]
## [5.0.2](https://github.com/cycjimmy/semantic-release-action/compare/v5.0.1...v5.0.2) (2025-10-10)

### Bug Fixes

* further fix of result handling in windUpJob.task.js ([451bf1f](451bf1fa96)), closes [#264](https://github.com/cycjimmy/semantic-release-action/issues/264)
2025-10-10 06:28:32 +00:00
Geoffrey.C
b67d9790a5
Merge pull request #265 from mgerlach/patch-1
fix: further fix of result handling in windUpJob.task.js
2025-10-10 14:28:03 +08:00
Martin Gerlach
451bf1fa96
fix: further fix of result handling in windUpJob.task.js
Resolves #264
2025-10-09 16:32:45 +02:00
semantic-release-bot
ebcbc66374 chore(release): 5.0.1 [skip ci]
## [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](4267eee560))
2025-10-09 10:13:01 +00:00
Geoffrey.C
79d9929b57
Merge pull request #262 from mgerlach/patch-1
fix: improves result handling in windUpJob.task.js
2025-10-09 18:12:42 +08:00
Martin Gerlach
2d054a5550
chore: remove whitespace 2025-10-09 02:34:54 +02:00
Martin Gerlach
4267eee560
fix: improves result handling in windUpJob.task.js
Promise was checked before resolving, so the first early return never happened (Promises are truthy) and the subsequent `if (lastRelease.version)` check produced an error in some cases(`lastRelease` undefined, "Error: TypeError: Cannot read properties of undefined (reading 'version')"). 

Observed for semantic-release-action 4.2.2 and 5.0.0 with semantic_version > 24.2.6 (not observed with 24.2.6). 

The PR prevents reading properties of "undefined".
2025-10-09 02:31:05 +02:00
Geoffrey.C
8e71605483
Merge pull request #261 from cycjimmy/dependabot/npm_and_yarn/semantic-release-24.2.9
build(deps): bump semantic-release from 24.2.7 to 24.2.9
2025-10-03 01:43:16 +08:00
dependabot[bot]
d0147331ab
build(deps): bump semantic-release from 24.2.7 to 24.2.9
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 24.2.7 to 24.2.9.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v24.2.7...v24.2.9)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-version: 24.2.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 00:01:13 +00:00
Geoffrey.C
8f46764b73
Merge pull request #257 from cycjimmy/dependabot/github_actions/actions/setup-node-5
build(deps): bump actions/setup-node from 4 to 5
2025-09-05 17:00:40 +08:00
dependabot[bot]
cc1a3d73b8
build(deps): bump actions/setup-node from 4 to 5
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-05 00:01:30 +00:00
Geoffrey.C
c868a78cfc docs: update the actions version in the README (#255) 2025-09-04 16:20:38 +08:00
semantic-release-bot
9cc899c47e chore(release): 5.0.0 [skip ci]
# [5.0.0](https://github.com/cycjimmy/semantic-release-action/compare/v4.2.2...v5.0.0) (2025-08-30)

### Features

* update node version on runner to 24 ([7869323](78693238b0))

### BREAKING CHANGES

* this action now runs using node 24
2025-08-30 01:16:42 +00:00
Geoffrey.C
5362fd1cca
Merge pull request #255 from DarkAtra/feat/update-node-version-on-runner-to-24
feat!: update node version on runner to 24
2025-08-30 09:16:24 +08:00
Geoffrey.C
92100d1315
Merge pull request #253 from cycjimmy/dependabot/github_actions/actions/checkout-5
build(deps): bump actions/checkout from 4 to 5
2025-08-23 10:23:19 +08:00
Tommy Schmidt
78693238b0
feat: update node version on runner to 24
BREAKING CHANGE: this action now runs using node 24
2025-08-20 17:12:45 +02:00
dependabot[bot]
db700e46d1
build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 10:29:28 +00:00
Geoffrey.C
9a24fc62fd
Merge pull request #251 from cycjimmy/dependabot/npm_and_yarn/semantic-release-24.2.7
build(deps): bump semantic-release from 24.2.6 to 24.2.7
2025-07-20 15:13:22 +08:00
dependabot[bot]
fc78113e7a
build(deps): bump semantic-release from 24.2.6 to 24.2.7
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 24.2.6 to 24.2.7.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v24.2.6...v24.2.7)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-version: 24.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 00:01:18 +00:00
semantic-release-bot
16ca923e6c chore(release): 4.2.2 [skip ci]
## [4.2.2](https://github.com/cycjimmy/semantic-release-action/compare/v4.2.1...v4.2.2) (2025-07-04)

### Bug Fixes

* **cleanupNpmrc.task.js:** Use @actions/io to remove .npmrc ([b7db0cb](b7db0cbbf5))
2025-07-04 15:16:47 +00:00
Geoffrey.C
5d996b8178
Merge pull request #250 from densogiaichned/main
fix(cleanupNpmrc.task.js): Use @actions/io to remove .npmrc
2025-07-04 23:16:24 +08:00
densogiaichned
b7db0cbbf5
fix(cleanupNpmrc.task.js): Use @actions/io to remove .npmrc 2025-07-04 14:23:59 +02:00
Geoffrey.C
8333fcccaa
Merge pull request #249 from cycjimmy/dependabot/npm_and_yarn/semantic-release-24.2.6
build(deps): bump semantic-release from 24.2.5 to 24.2.6
2025-06-30 15:01:43 +08:00
dependabot[bot]
d9fa6f1462
build(deps): bump semantic-release from 24.2.5 to 24.2.6
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 24.2.5 to 24.2.6.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v24.2.5...v24.2.6)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-version: 24.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-30 00:06:25 +00:00
semantic-release-bot
c4a2fa8906 chore(release): 4.2.1 [skip ci]
## [4.2.1](https://github.com/cycjimmy/semantic-release-action/compare/v4.2.0...v4.2.1) (2025-06-07)

### Bug Fixes

* update marked terminal to v7.3.0 ([b52fa1b](b52fa1bae5))
2025-06-07 15:35:33 +00:00
Geoffrey.C
76e103a7e9
Merge pull request #245 from enkhjile/fix/upgrade-marked-terminal
fix: update marked terminal to v7.3.0
2025-06-07 23:35:10 +08:00
Enkhjil Enkhbaatar
b52fa1bae5 fix: update marked terminal to v7.3.0
This resolves dependency version mismatch when using semantic-version 24.2.4
2025-05-22 00:47:43 +09:00
10 changed files with 1778 additions and 6335 deletions

View file

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Semantic Release
uses: ./

View file

@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Semantic Release
uses: ./
@ -46,9 +46,9 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup Node.js with GitHub Package Registry
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
registry-url: 'https://npm.pkg.github.com'
scope: 'cycjimmy'

View file

@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Semantic Release
uses: ./
@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Semantic Release
uses: ./

View file

@ -18,16 +18,16 @@ GitHub Action for [Semantic Release][semantic-url].
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
```
**IMPORTANT**: `GITHUB_TOKEN` does not have the required permissions to operate on protected branches.
If you are using this action for protected branches, replace `GITHUB_TOKEN` with [Personal Access Token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). If using the `@semantic-release/git` plugin for protected branches, avoid persisting credentials as part of `actions/checkout@v4` by setting the parameter `persist-credentials: false`. This credential does not have the required permission to operate on protected branches.
If you are using this action for protected branches, replace `GITHUB_TOKEN` with [Personal Access Token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). If using the `@semantic-release/git` plugin for protected branches, avoid persisting credentials as part of `actions/checkout@v5` by setting the parameter `persist-credentials: false`. This credential does not have the required permission to operate on protected branches.
#### Private Packages
@ -63,9 +63,9 @@ then make sure that you configure this in your `package.json` file:
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
semantic_version: 19.0.5 # It is recommended to specify a version range
# for semantic-release when using
@ -75,7 +75,7 @@ steps:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
```
If no version range is specified with `cycjimmy/semantic-release-action@v4` then [semantic-release](https://github.com/semantic-release/semantic-release/) version [21.1.1](https://github.com/semantic-release/semantic-release/releases/tag/v21.1.1) is used.
If no version range is specified with `cycjimmy/semantic-release-action@v6` then [semantic-release](https://github.com/semantic-release/semantic-release/) version [24.2.7](https://github.com/semantic-release/semantic-release/releases/tag/v25.0.2) is used.
#### branches
> {Optional Input Parameter} The branches on which releases should happen.<br>`branches` supports for **semantic-release above v16**.
@ -83,9 +83,9 @@ If no version range is specified with `cycjimmy/semantic-release-action@v4` then
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
semantic_version: 16
# you can set branches for semantic-release above v16.
@ -129,9 +129,9 @@ See [configuration#branches](https://semantic-release.gitbook.io/semantic-releas
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
semantic_version: 15.13.28
# you can set branch for semantic-release older than v16.
@ -154,9 +154,9 @@ Github Action Workflow:
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
# You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: |
@ -184,9 +184,9 @@ Release Config:
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
dry_run: true
env:
@ -200,9 +200,9 @@ steps:
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
ci: false
env:
@ -218,9 +218,9 @@ The action can be used with `extends` option to extend an existing [sharable con
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
# You can extend an existing shareable configuration.
# And you can specify version range for the shareable configuration if you prefer.
@ -238,9 +238,9 @@ This action run semantic release in the github provided workspace by default. Yo
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
# You can select another working directory like a subdirectory for example.
working_directory: ./code
@ -255,9 +255,9 @@ The default tag format on semantic-release is `v{version}`. You can override tha
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
tag_format: custom-v${version}
env:
@ -271,7 +271,7 @@ Setting this to true will unset the `GITHUB_ACTIONS` environment variable. This
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Temporarily merge PR branch
if: ${{ github.event_name == 'pull_request' }}
run: |
@ -279,7 +279,7 @@ steps:
git config --global user.email github-actions@github.com
git merge --no-ff origin/${{ github.event.pull_request.head.ref }} --message "${{ github.event.pull_request.title }}"
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
with:
unset_gha_env: ${{ github.event_name == 'pull_request' }}
ci: ${{ github.event_name == 'pull_request' && false || '' }}
@ -308,9 +308,9 @@ steps:
```yaml
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@v6
id: semantic # Need an `id` for output variables
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -64,5 +64,5 @@ outputs:
last_release_git_tag:
description: 'The Git tag associated with the last release, if there was one.'
runs:
using: 'node20'
using: 'node24'
main: 'index.js'

View file

@ -1,3 +1,55 @@
# [6.0.0](https://github.com/cycjimmy/semantic-release-action/compare/v5.0.2...v6.0.0) (2025-11-17)
### Features
* **deps:** update semantic-release to version 25 ([9246c0b](https://github.com/cycjimmy/semantic-release-action/commit/9246c0bd17405b1f20450501f39234912258bc50))
### BREAKING CHANGES
* **deps:** Update semantic-release to version 25
## [5.0.2](https://github.com/cycjimmy/semantic-release-action/compare/v5.0.1...v5.0.2) (2025-10-10)
### Bug Fixes
* further fix of result handling in windUpJob.task.js ([451bf1f](https://github.com/cycjimmy/semantic-release-action/commit/451bf1fa96343272b4efadb5731fe2e25073d24f)), closes [#264](https://github.com/cycjimmy/semantic-release-action/issues/264)
## [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)
### Features
* update node version on runner to 24 ([7869323](https://github.com/cycjimmy/semantic-release-action/commit/78693238b0cffcbd79484ca9c3f634c6d1e3978a))
### BREAKING CHANGES
* this action now runs using node 24
## [4.2.2](https://github.com/cycjimmy/semantic-release-action/compare/v4.2.1...v4.2.2) (2025-07-04)
### Bug Fixes
* **cleanupNpmrc.task.js:** Use @actions/io to remove .npmrc ([b7db0cb](https://github.com/cycjimmy/semantic-release-action/commit/b7db0cbbf5f42eb8fe027828c236fbc340b5429e))
## [4.2.1](https://github.com/cycjimmy/semantic-release-action/compare/v4.2.0...v4.2.1) (2025-06-07)
### Bug Fixes
* update marked terminal to v7.3.0 ([b52fa1b](https://github.com/cycjimmy/semantic-release-action/commit/b52fa1bae5b892a36c1e01fab61457344cc0c494))
# [4.2.0](https://github.com/cycjimmy/semantic-release-action/compare/v4.1.1...v4.2.0) (2025-03-14)

7960
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"name": "@cycjimmy/semantic-release-action",
"version": "4.2.0",
"version": "6.0.0",
"description": "GitHub Action for Semantic Release",
"main": "index.js",
"scripts": {
@ -21,10 +21,11 @@
},
"homepage": "https://github.com/cycjimmy/semantic-release-action#readme",
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/core": "^2.0.0",
"@actions/io": "^2.0.0",
"@cycjimmy/awesome-js-funcs": "^4.0.9",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"semantic-release": "^24.2.3"
"semantic-release": "^25.0.2"
}
}

View file

@ -1,15 +1,9 @@
const core = require('@actions/core');
const exec = require('./_exec');
const io = require('@actions/io');
/**
* Clean up `.npmrc` file in the repo after releasing
* @returns {Promise<never>}
*/
module.exports = async () => {
const {stdout, stderr} = await exec(`rm -f .npmrc`);
core.debug(stdout);
if (stderr) {
return Promise.reject(stderr);
}
await io.rmRF('.npmrc');
};

View file

@ -7,23 +7,29 @@ const outputs = require('./outputs.json');
* @returns {Promise<void>}
*/
module.exports = async (result) => {
if (!result) {
const resolved = await result;
if (!resolved) {
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.setOutput(outputs.last_release_version, lastRelease.version);
core.setOutput(outputs.last_release_git_head, lastRelease.gitHead);
core.setOutput(outputs.last_release_git_tag, lastRelease.gitTag);
}
if (!nextRelease) {
if (!nextRelease?.version) {
core.debug('No release published.');
return Promise.resolve();
return;
}
core.debug(`Published ${nextRelease.type} release version ${nextRelease.version} containing ${commits.length} commits.`);