Skip to content

Commit 5834a09

Browse files
authored
ci: fix auto-release (#115)
1 parent fb3edfe commit 5834a09

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

release.config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*/
44

55
// For CommonJS use:
6-
// const { readFile } = require('fs').promises;
7-
// const { resolve } = require('path');
6+
const { readFile } = require('fs').promises;
7+
const { resolve } = require('path');
88

99
// For ES6 modules use:
10-
import { readFile } from 'fs/promises';
11-
import { resolve, dirname } from 'path';
12-
import { fileURLToPath } from 'url';
10+
// import { readFile } from 'fs/promises';
11+
// import { resolve, dirname } from 'path';
12+
// import { fileURLToPath } from 'url';
1313

1414
// Get env vars
1515
const ref = process.env.GITHUB_REF;
@@ -106,8 +106,8 @@ async function config() {
106106
async function loadTemplates() {
107107
for (const template of Object.keys(templates)) {
108108
// For ES6 modules use:
109-
const fileUrl = import.meta.url;
110-
const __dirname = dirname(fileURLToPath(fileUrl));
109+
// const fileUrl = import.meta.url;
110+
// const __dirname = dirname(fileURLToPath(fileUrl));
111111

112112
const filePath = resolve(__dirname, resourcePath, templates[template].file);
113113
const text = await readFile(filePath, 'utf-8');
@@ -122,7 +122,7 @@ function getReleaseComment() {
122122
}
123123

124124
// For CommonJS use:
125-
// module.exports = config();
125+
module.exports = config();
126126

127127
// For ES6 modules use:
128-
export default config();
128+
// export default config();

0 commit comments

Comments
 (0)