Skip to content

Commit 7c7fbda

Browse files
authored
fix: update release workflow for protected main (#65)
1 parent 8821db2 commit 7c7fbda

5 files changed

Lines changed: 12 additions & 51 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

1616
- name: Setup Emacs 30.1
1717
uses: purcell/setup-emacs@master
@@ -22,4 +22,4 @@ jobs:
2222
run: make test
2323

2424
- name: Byte compile
25-
run: make compile
25+
run: make compile

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121
with:
2222
fetch-depth: 0 # Required for semantic-release to analyze all commits
2323
token: ${{ secrets.GITHUB_TOKEN }}
@@ -28,9 +28,9 @@ jobs:
2828
version: '30.1'
2929

3030
- name: Setup Node.js
31-
uses: actions/setup-node@v4
31+
uses: actions/setup-node@v6
3232
with:
33-
node-version: "20"
33+
node-version: "24.10.0"
3434

3535
- name: Install Node.js dependencies
3636
run: npm install

.releaserc.js

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -28,42 +28,6 @@ module.exports = {
2828
],
2929
// Generate release notes from commits
3030
"@semantic-release/release-notes-generator",
31-
// Generate and update CHANGELOG.md
32-
[
33-
"@semantic-release/changelog",
34-
{
35-
changelogFile: "CHANGELOG.md",
36-
},
37-
],
38-
// Update version in enkan-repl.el and regenerate documentation
39-
[
40-
"@semantic-release/exec",
41-
{
42-
prepareCmd: [
43-
// Update version in .el file
44-
"emacs --batch --load scripts/bump-version.el -- ${nextRelease.version}",
45-
// Regenerate precompiled constants for cheat-sheet performance (must be first)
46-
"emacs --batch --load scripts/generate-constants.el --eval '(generate-cheat-sheet-constants)'",
47-
// Regenerate documentation files with updated functions (uses constants)
48-
"emacs --batch --load scripts/generate-docs.el --eval '(generate-all-docs)'",
49-
].join(" && "),
50-
},
51-
],
52-
// Commit the changes
53-
[
54-
"@semantic-release/git",
55-
{
56-
assets: [
57-
"CHANGELOG.md",
58-
"package.json",
59-
"enkan-repl.el",
60-
"README.org",
61-
"enkan-repl-constants.el",
62-
],
63-
message:
64-
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
65-
},
66-
],
6731
// Create GitHub release
6832
"@semantic-release/github",
6933
],

README.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ byte compilation,
404404
and documentation checks.
405405

406406
** Releases
407-
This project uses automated releases via [[https://semantic-release.gitbook.io/][semantic-release]]. New versions are automatically published to GitHub Releases and a [[file:CHANGELOG.md][CHANGELOG.md]] is generated based on Conventional Commits. You can find detailed release notes in the CHANGELOG.
407+
This project uses automated releases via [[https://semantic-release.gitbook.io/][semantic-release]]. New versions are automatically published to GitHub Releases based on Conventional Commits. You can find detailed release notes on the GitHub Releases page.
408408

409409
*Note*: The `semantic-release` toolchain is used for development/release automation only. The Elisp package itself has no Node.js runtime dependencies and can be installed normally via MELPA.
410410

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,10 @@
2323
"author": "phasetr <phasetr@gmail.com>",
2424
"license": "MIT",
2525
"devDependencies": {
26-
"@semantic-release/changelog": "^6.0.3",
27-
"@semantic-release/commit-analyzer": "^11.0.0",
28-
"@semantic-release/exec": "^6.0.3",
29-
"@semantic-release/git": "^10.0.1",
30-
"@semantic-release/github": "^9.2.6",
31-
"@semantic-release/release-notes-generator": "^12.0.0",
32-
"conventional-changelog-conventionalcommits": "^7.0.2",
33-
"semantic-release": "^23.0.0"
26+
"@semantic-release/commit-analyzer": "^13.0.1",
27+
"@semantic-release/github": "^12.0.8",
28+
"@semantic-release/release-notes-generator": "^14.1.1",
29+
"conventional-changelog-conventionalcommits": "^9.3.1",
30+
"semantic-release": "^25.0.3"
3431
}
35-
}
32+
}

0 commit comments

Comments
 (0)