From 9385be9e757839189ea5ee63ec4e3caa8a6ca71b Mon Sep 17 00:00:00 2001 From: m-shaka Date: Fri, 16 Feb 2024 19:35:19 +0900 Subject: [PATCH] Bump node.js to 20 on the CI (#350) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: bump nodejs from 16 to 20 * Create kind-sheep-grab.md --------- Co-authored-by: Mateusz BurzyƄski --- .changeset/kind-sheep-grab.md | 5 +++++ .github/workflows/ci.yml | 4 ++-- .github/workflows/version-or-publish.yml | 4 ++-- README.md | 16 ++++++++-------- action.yml | 2 +- package.json | 4 ++-- yarn.lock | 12 ++++++++++++ 7 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 .changeset/kind-sheep-grab.md diff --git a/.changeset/kind-sheep-grab.md b/.changeset/kind-sheep-grab.md new file mode 100644 index 00000000..f7fbfad8 --- /dev/null +++ b/.changeset/kind-sheep-grab.md @@ -0,0 +1,5 @@ +--- +"@changesets/action": patch +--- + +Bump the used node.js from 16 to 20 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e82b459..3f583117 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,10 @@ jobs: - name: Checkout Repo uses: actions/checkout@v2 - - name: Use Node.js 16 + - name: Use Node.js 20 uses: actions/setup-node@v1 with: - node-version: 16.x + node-version: 20.x - name: Install Dependencies run: yarn --frozen-lockfile diff --git a/.github/workflows/version-or-publish.yml b/.github/workflows/version-or-publish.yml index ee3662a1..927b083e 100644 --- a/.github/workflows/version-or-publish.yml +++ b/.github/workflows/version-or-publish.yml @@ -14,10 +14,10 @@ jobs: - name: Checkout Repo uses: actions/checkout@v2 - - name: Use Node.js 16 + - name: Use Node.js 20 uses: actions/setup-node@v1 with: - node-version: 16.x + node-version: 20.x - name: Install Dependencies run: yarn --frozen-lockfile diff --git a/README.md b/README.md index 2bd15d31..98ff1433 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,10 @@ jobs: - name: Checkout Repo uses: actions/checkout@v3 - - name: Setup Node.js 16 + - name: Setup Node.js 20 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - name: Install Dependencies run: yarn @@ -79,10 +79,10 @@ jobs: - name: Checkout Repo uses: actions/checkout@v3 - - name: Setup Node.js 16.x + - name: Setup Node.js 20.x uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x - name: Install Dependencies run: yarn @@ -144,10 +144,10 @@ jobs: - name: Checkout Repo uses: actions/checkout@v3 - - name: Setup Node.js 16.x + - name: Setup Node.js 20.x uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x - name: Install Dependencies run: yarn @@ -188,10 +188,10 @@ jobs: - name: Checkout Repo uses: actions/checkout@v3 - - name: Setup Node.js 16.x + - name: Setup Node.js 20.x uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x - name: Install Dependencies run: yarn diff --git a/action.yml b/action.yml index 36dfeafb..71a90d57 100644 --- a/action.yml +++ b/action.yml @@ -1,7 +1,7 @@ name: Changesets description: A GitHub action to automate releases with Changesets runs: - using: "node16" + using: "node20" main: "dist/index.js" inputs: publish: diff --git a/package.json b/package.json index 83c64cdf..06e4d081 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@babel/preset-typescript": "^7.13.0", "@types/fs-extra": "^8.0.0", "@types/jest": "^29.5.1", - "@types/node": "^12.7.1", + "@types/node": "^20.11.17", "@types/semver": "^7.5.0", "babel-jest": "^29.5.0", "husky": "^3.0.3", @@ -31,7 +31,7 @@ "release": "node ./scripts/release.js" }, "engines": { - "node": ">= 16" + "node": ">= 20" }, "dependencies": { "@actions/core": "^1.10.0", diff --git a/yarn.lock b/yarn.lock index ea3d6775..06c45b9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1733,6 +1733,13 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240" integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ== +"@types/node@^20.11.17": + version "20.11.17" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.17.tgz#cdd642d0e62ef3a861f88ddbc2b61e32578a9292" + integrity sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw== + dependencies: + undici-types "~5.26.4" + "@types/normalize-package-data@^2.4.0": version "2.4.1" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" @@ -4848,6 +4855,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + unherit@^1.0.4: version "1.1.3" resolved "https://registry.yarnpkg.com/unherit/-/unherit-1.1.3.tgz#6c9b503f2b41b262330c80e91c8614abdaa69c22"