Skip to content

Commit 73cef9e

Browse files
committed
ci: use current version of semantic-release and update config
1 parent 09a1a40 commit 73cef9e

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18+
- name: Setup nodejs
19+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
20+
with:
21+
node-version: lts/*
22+
1823
- name: Generate token
1924
id: token
2025
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2
@@ -34,11 +39,12 @@ jobs:
3439
- name: Install releaser
3540
run: |
3641
npm install -g \
37-
conventional-changelog-conventionalcommits@6.1.0 \
38-
semantic-release@23.1.1 \
42+
semantic-release@25.0.2 \
3943
@semantic-release/changelog \
4044
@semantic-release/git \
41-
@semantic-release/exec
45+
@semantic-release/github \
46+
semantic-release-replace-plugin \
47+
conventional-changelog-conventionalcommits
4248
4349
- name: Run releaser
4450
env:

.releaserc

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,26 @@
9595
}
9696
],
9797
[
98-
"@semantic-release/exec",
98+
"semantic-release-replace-plugin",
9999
{
100-
"prepareCmd": "./hack/action-version.sh ${nextRelease.version}"
100+
"replacements": [
101+
{
102+
"files": [
103+
"action.yml"
104+
],
105+
"from": "docker://ghcr.io/actionhippie/pushrm:.*",
106+
"to": "docker://ghcr.io/actionhippie/pushrm:${nextRelease.version}",
107+
"results": [
108+
{
109+
"file": "action.yml",
110+
"hasChanged": true,
111+
"numMatches": 1,
112+
"numReplacements": 1
113+
}
114+
],
115+
"countMatches": true
116+
}
117+
]
101118
}
102119
],
103120
[

hack/action-version.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)