Skip to content

Commit 6b11e07

Browse files
committed
ci: migrate release config to esm
1 parent 9a6baf5 commit 6b11e07

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: ESLint
2222
if: success() || failure()
2323
run: npm run eslint -- --max-warnings 0
24+
2425
npm-pkg-lint:
2526
runs-on: ubuntu-latest
2627
steps:

eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ export default [
5050
ignores: ["cypress/**", "tests/e2e/**"],
5151
...vitestConfig,
5252
},
53+
54+
{
55+
name: "local/semantic-release",
56+
files: ["release.config.mjs"],
57+
rules: {
58+
"import/no-unresolved": "off",
59+
},
60+
},
5361
];

release.config.js

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

release.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import commitAnalyzer from "@html-validate/semantic-release-config/lib/commit-analyzer";
2+
import releaseNotesGenerator from "@html-validate/semantic-release-config/lib/release-notes-generator";
3+
import npm from "@html-validate/semantic-release-config/lib/npm";
4+
import changelog from "@html-validate/semantic-release-config/lib/changelog";
5+
import exec from "@html-validate/semantic-release-config/lib/exec";
6+
import git from "@html-validate/semantic-release-config/lib/git";
7+
8+
export default {
9+
plugins: [
10+
["@semantic-release/commit-analyzer", commitAnalyzer],
11+
["@semantic-release/release-notes-generator", releaseNotesGenerator],
12+
["@semantic-release/npm", npm],
13+
["@semantic-release/github", {}],
14+
["@semantic-release/changelog", changelog],
15+
["@semantic-release/exec", exec],
16+
["@semantic-release/git", git],
17+
],
18+
};

0 commit comments

Comments
 (0)