diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5b18875c3..c9b47c457 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -414,12 +414,17 @@ jobs: with: fetch-depth: 0 - - run: corepack enable + - name: node post install + run: | + corepack enable + npm config set fund false - name: Install Node uses: actions/setup-node@v4 with: - node-version: 18 + cache: yarn + cache-dependency-path: "**/yarn.lock" + node-version-file: .tool-versions - name: Download the artifact uses: actions/download-artifact@v4 @@ -458,7 +463,9 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: - node-version: 18 + cache: yarn + cache-dependency-path: "**/yarn.lock" + node-version-file: .tool-versions registry-url: "https://registry.npmjs.org" - run: npm publish --access public @ansible-ansible-language-server-*.tgz diff --git a/.github/workflows/dedupe.yml b/.github/workflows/dedupe.yml index 0679bec15..080e732c3 100644 --- a/.github/workflows/dedupe.yml +++ b/.github/workflows/dedupe.yml @@ -31,10 +31,14 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '18' + cache: yarn + cache-dependency-path: "**/yarn.lock" + node-version-file: .tool-versions - - name: Enable Corepack - run: corepack enable + - name: node post install + run: | + corepack enable + npm config set fund false - name: Configure Git run: | diff --git a/.tool-versions b/.tool-versions index 2ca7d52b2..1c3e8b76e 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,5 +1,5 @@ direnv 2.34.0 -nodejs 18.19.1 +nodejs 20.18.0 # asdf install task latest task 3.37.2 yarn 1.22.19 diff --git a/package.json b/package.json index ea79d33db..0da771365 100644 --- a/package.json +++ b/package.json @@ -989,10 +989,10 @@ "engineStrict": true, "engines": { "//": "node version affects only development, it does not affect VS Code runtime", - "node": ">=16.0", + "node": ">=20.0", "npm": "\n\nERROR: Please use yarn instead of npm for this repository.!!!\n\n", "vscode": "^1.85.0", - "yarn": ">=3.2.1" + "yarn": ">=4.5.1" }, "extensionDependencies": [ "ms-python.python", diff --git a/packages/ansible-language-server/Taskfile.yml b/packages/ansible-language-server/Taskfile.yml index 2f11ccbe8..5fe90bea4 100644 --- a/packages/ansible-language-server/Taskfile.yml +++ b/packages/ansible-language-server/Taskfile.yml @@ -64,7 +64,6 @@ tasks: desc: Run all tests using node (same version as vscode), will skip @ee tests if both SKIP_PODMAN=1 and SKIP_DOCKER=1. dir: "{{ .TASKFILE_DIR }}" cmds: - # - bash -c 'asdf local nodejs latest:18 latest:$(asdf nodejs resolve lts)' - task: .test test-node-lts: dir: "{{ .TASKFILE_DIR }}" diff --git a/packages/ansible-language-server/package.json b/packages/ansible-language-server/package.json index 55725e765..99c1db520 100644 --- a/packages/ansible-language-server/package.json +++ b/packages/ansible-language-server/package.json @@ -24,7 +24,7 @@ }, "icon": "icon.png", "engines": { - "node": ">=14.0", + "node": ">=20.0", "npm": ">=7.11.2" }, "bin": "bin/ansible-language-server",