Skip to content

Commit 3a92227

Browse files
authored
chore: fix post-release scripts (#2055)
* chore: fix post-release scripts * add a docs change to trigger checks
1 parent 1c7dfca commit 3a92227

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/@v2/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Authenticate, update APIs, publish documentation, and use the other tools to man
2727

2828
{% admonition type="warning" %}
2929
Starting with v2, Redocly CLI becomes a ESM-only package.
30-
This means that you can run it with Node.js 22.12.0 or higher (alternatively -- 20.19.0 or higher).
30+
This means that you can run it with Node.js v22.12.0 or higher (alternatively -- v20.19.0 or higher).
3131

3232
{% /admonition %}
3333

scripts/post-changeset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const fs = require('fs');
1+
import fs from 'fs';
22

33
const generatedLogsCli = fs.readFileSync('./packages/cli/CHANGELOG.md').toString();
44
const [, logCli] = generatedLogsCli.split('\n## ', 2);
55

6-
const mainChangelog = fs.readFileSync('./docs/changelog.md').toString();
6+
const mainChangelog = fs.readFileSync('./docs/@v2/changelog.md').toString();
77
const [date] = new Date().toISOString().split('T');
88
const logWithDate = logCli.replace('\n', ` (${date})\n`);
99
const modifiedChangelog = mainChangelog.replace(

scripts/write-release-message.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const fs = require('fs');
2-
const slackifyMarkdown = require('slackify-markdown');
1+
import fs from 'fs';
2+
import slackifyMarkdown from 'slackify-markdown';
33

44
const generatedLogsCli = fs.readFileSync('./packages/cli/CHANGELOG.md').toString();
55
const [, logCli] = generatedLogsCli.split('\n## ', 2);

0 commit comments

Comments
 (0)