Skip to content

Commit

Permalink
fix(release): use commonjs format for config #9358
Browse files Browse the repository at this point in the history
The newer JavaScript module format is not supported by the
semantic-release version used through the release action.

Latest version used is the semantic-release version 22.x, and with
version 23.x+ there is support for the mjs format.
  • Loading branch information
mhitza committed Jan 21, 2025
1 parent f3fc0f5 commit 9f42525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tasks/other-dev-generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
block:
- name: generate semantic-release config file
ansible.builtin.template:
src: ./templates/release.config.mjs.j2
dest: "{{ repo_path }}/release.config.mjs"
src: ./templates/.releaserc.cjs.j2
dest: "{{ repo_path }}/.releaserc.cjs"

- name: find workflow extensions
ansible.builtin.command: "./library/list_extension_workflows.py '{{ repo_path }}'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @type {import('semantic-release').GlobalConfig}
*/
export default {
module.exports = {
branches: ["{{ repo.github.default_branch }}"],
debug: "True",
plugins: [
Expand Down

0 comments on commit 9f42525

Please sign in to comment.