Skip to content

Commit 9615525

Browse files
authored
ci: fix ESM import errors for changelogs generation
1 parent 8822077 commit 9615525

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/changelog/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict'
2-
const config = require('conventional-changelog-conventionalcommits');
2+
import config from 'conventional-changelog-conventionalcommits';
33

44
module.exports = config({
55
types: [

.github/changelog/pre_changelog_hook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
2-
const semver = require('semver');
3-
const core = require('@actions/core');
2+
import semver from 'semver';
3+
import core from '@actions/core';
44

55
exports.preVersionGeneration = (version) => {
66
const {VERSION} = process.env;

.github/changelog/pre_commit_hook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
2-
const core = require('@actions/core');
3-
const {exec} = require('@actions/exec');
2+
import core from '@actions/core';
3+
import {exec} from '@actions/exec';
44

55
exports.preCommit = async (props) => {
66
core.startGroup(`Bundling`);

0 commit comments

Comments
 (0)