Skip to content

Commit

Permalink
ci: set NODE_OPTIONS for node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Sep 7, 2023
1 parent 7c7991a commit 454c1d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Override NODE options for the most recent version
if: matrix.node == '18'
run: echo "NODE_OPTIONS=--no-experimental-fetch" >> $GITHUB_ENV
- run: node --version
# The first installation step ensures that all of our production
# dependencies work on the given Node.js version, this helps us find
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./build/src/index.js",
"bin": "./build/src/bin/release-please.js",
"scripts": {
"test": "cross-env ENVIRONMENT=test LC_ALL=en c8 mocha --node-option no-experimental-fetch --recursive --timeout=5000 build/test",
"test": "cross-env ENVIRONMENT=test LC_ALL=en c8 mocha --recursive --timeout=5000 build/test",
"docs": "echo add docs tests",
"test:snap": "SNAPSHOT_UPDATE=1 LC_ALL=en npm test",
"clean": "gts clean",
Expand Down

0 comments on commit 454c1d7

Please sign in to comment.