From 4af9baff691931efc83328958a243276b6468fdd Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Mon, 16 Sep 2024 13:30:55 -0400 Subject: [PATCH] fix: Use Node.js 20 in publish.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Node.js 16 has been end-of-life’d for more than a year. This PR updates the publish workflow to use Node.js 20, the Active LTS, instead. https://github.com/github/markdownlint-github/pull/117 updated a package so that `structuredClone` is now called. That API did not exist in Node.js 16, so updating to a newer version avoids workflow failures. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 30a7590..194742b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ cache: npm - run: npm ci