diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 266e304..1383e28 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,6 +7,6 @@ jobs: steps: - { name: Checkout, uses: actions/checkout@v4.1.1 } - - { name: Setup Node.js environment, uses: actions/setup-node@v4.0.1, with: { node-version: ">=20" } } + - { name: Setup Node.js environment, uses: actions/setup-node@v4.0.1, with: { node-version: "^18 || >=20" } } - { name: Setup pnpm, uses: pnpm/action-setup@v2.4.0, with: { version: "^8.14.1", run_install: true } } - run: PATH=$PWD/node_modules/.bin:$PATH scripts/lint.sh diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0b602ab..5911b4c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,7 +8,7 @@ jobs: steps: - { name: Checkout, uses: actions/checkout@v4.1.1 } - - { name: Setup Node.js environment, uses: actions/setup-node@v4.0.1, with: { node-version: ">=20" } } + - { name: Setup Node.js environment, uses: actions/setup-node@v4.0.1, with: { node-version: "^18 || >=20" } } - { name: Setup pnpm, uses: pnpm/action-setup@v2.4.0, with: { version: "^8.14.1", run_install: true } } - run: git config --global user.email github-action@users.noreply.github.com - run: git config --global user.name "Github Action" diff --git a/package.json b/package.json index 3c7dfa4..4e2e6d6 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "typescript": "^5.3.3" }, "engines": { - "node": ">=20" + "node": "^18 || >=20" }, "private": true, "type": "module",