diff --git a/.github/workflows/pull-request-single-pool.yml b/.github/workflows/pull-request-single-pool.yml index 38f6d32c058..cef12dc80f3 100644 --- a/.github/workflows/pull-request-single-pool.yml +++ b/.github/workflows/pull-request-single-pool.yml @@ -118,7 +118,7 @@ jobs: js-test: runs-on: ubuntu-latest env: - NODE_VERSION: 20 + NODE_VERSION: 20.5 needs: cargo-test-sbf steps: - uses: actions/checkout@v2 diff --git a/single-pool/js/packages/classic/package.json b/single-pool/js/packages/classic/package.json index b7773b3f9d3..724efb5c496 100644 --- a/single-pool/js/packages/classic/package.json +++ b/single-pool/js/packages/classic/package.json @@ -13,7 +13,7 @@ "build": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && ./ts-fixup.sh", "lint": "eslint --max-warnings 0 .", "lint:fix": "eslint . --fix", - "test": "sed -i '1s/.*/{ \"type\": \"module\",/' package.json && NODE_OPTIONS='--loader=tsx' ava ; sed -i '1s/.*/{/' package.json" + "test": "sed -i '1s/.*/{ \"type\": \"module\",/' package.json && NODE_OPTIONS='--loader=tsx' ava ; ret=$?; sed -i '1s/.*/{/' package.json && exit $ret" }, "devDependencies": { "@types/node": "^20.9.0",