Skip to content

Commit

Permalink
Merge pull request #67 from EQWorks/readme
Browse files Browse the repository at this point in the history
[G2M] Readme - update readme.md with Node.js 18 instructions
  • Loading branch information
amy83762100 authored Jun 27, 2023
2 parents eeccc13 + 55056ff commit bc5238f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,12 @@ Since v3.1.0, the sub-command `tag` identifies the version inside the commit mes
```

The above command reads from the latest three commits (by default, change with the `-n` flag.)

## Important note for Node.js 18

When running the CLI commands on Node.js 18, you may need to add the `--no-experimental-fetch` flag to the `NODE_OPTIONS` environment variable. This flag is required to disable the experimental fetch feature introduced in Node.js 18.

To execute the CLI commands with the `--no-experimental-fetch` flag, use the following syntax:

```shell
% NODE_OPTIONS=--no-experimental-fetch npx @eqworks/release <command>
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S node --no-experimental-fetch
#!/usr/bin/env node
const { notes, changelog, tag } = require('./lib')

if (require.main === module) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eqworks/release",
"version": "3.5.2",
"version": "3.5.3",
"main": "index.js",
"license": "MIT",
"source": "index.js",
Expand Down

0 comments on commit bc5238f

Please sign in to comment.