From c08fd9bee59ec4187ebe9e93e8694631bbf8cf00 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 1 May 2022 17:05:01 -0400 Subject: [PATCH 1/2] deps: update to use nodev16 Node 12 has an end of life on April 30, 2022. This PR updates the default runtime to [node16](https://github.blog/changelog/2021-12-10-github-actions-github-hosted-runners-now-run-node-js-16-by-default/), rather then node12. This is supported on all Actions Runners v2.285.0 or later. Signed-off-by: Rui Chen --- .github/workflows/test.yml | 8 ++++---- action.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0706fb..968e0c1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '12.x' - cache: 'npm' + node-version: "16.x" + cache: "npm" - run: npm ci - name: Run tests run: | diff --git a/action.yml b/action.yml index dff8dae..3943126 100644 --- a/action.yml +++ b/action.yml @@ -1,9 +1,9 @@ name: bump-homebrew-formula -description: 'Bump Homebrew formula after a new release' -author: '@mislav' +description: "Bump Homebrew formula after a new release" +author: "@mislav" runs: - using: node12 - main: './lib/index.js' + using: node16 + main: "./lib/index.js" inputs: formula-name: description: The name of the Homebrew formula (defaults to lower-cased repository name) From f364e76079bee9fa7e64be01eb392e1d26d25e00 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 1 May 2022 17:08:56 -0400 Subject: [PATCH 2/2] also update some build dependencies --- package-lock.json | 28 ++++++++++++++-------------- package.json | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6e0ce78..14a2ca2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,11 +13,11 @@ "@octokit/request-error": "^2.1.0" }, "devDependencies": { - "@types/node": "^14.14.25", + "@types/node": "^16.11.7", "@types/node-fetch": "^2.5.8", "@typescript-eslint/eslint-plugin": "^3.7.1", "@typescript-eslint/parser": "^3.7.1", - "@vercel/ncc": "^0.27.0", + "@vercel/ncc": "^0.33.4", "ava": "^3.11.0", "eslint": "^7.5.0", "eslint-config-prettier": "^6.11.0", @@ -381,9 +381,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "14.18.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.2.tgz", - "integrity": "sha512-fqtSN5xn/bBzDxMT77C1rJg6CsH/R49E7qsGuvdPJa20HtV5zSTuLJPNfnlyVH3wauKnkHdLggTVkOW/xP9oQg==", + "version": "16.11.33", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.33.tgz", + "integrity": "sha512-0PJ0vg+JyU0MIan58IOIFRtSvsb7Ri+7Wltx2qAg94eMOrpg4+uuP3aUHCpxXc1i0jCXiC+zIamSZh3l9AbcQA==", "dev": true }, "node_modules/@types/node-fetch": { @@ -541,9 +541,9 @@ } }, "node_modules/@vercel/ncc": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.27.0.tgz", - "integrity": "sha512-DllIJQapnU2YwewIhh/4dYesmMQw3h2cFtabECc/zSJHqUbNa0eJuEkRa6DXbZvh1YPWBtYQoPV17NlDpBw1Vw==", + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.33.4.tgz", + "integrity": "sha512-ln18hs7dMffelP47tpkaR+V5Tj6coykNyxJrlcmCormPqRQjB/Gv4cu2FfBG+PMzIfdZp2CLDsrrB1NPU22Qhg==", "dev": true, "bin": { "ncc": "dist/ncc/cli.js" @@ -4798,9 +4798,9 @@ "dev": true }, "@types/node": { - "version": "14.18.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.2.tgz", - "integrity": "sha512-fqtSN5xn/bBzDxMT77C1rJg6CsH/R49E7qsGuvdPJa20HtV5zSTuLJPNfnlyVH3wauKnkHdLggTVkOW/xP9oQg==", + "version": "16.11.33", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.33.tgz", + "integrity": "sha512-0PJ0vg+JyU0MIan58IOIFRtSvsb7Ri+7Wltx2qAg94eMOrpg4+uuP3aUHCpxXc1i0jCXiC+zIamSZh3l9AbcQA==", "dev": true }, "@types/node-fetch": { @@ -4891,9 +4891,9 @@ } }, "@vercel/ncc": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.27.0.tgz", - "integrity": "sha512-DllIJQapnU2YwewIhh/4dYesmMQw3h2cFtabECc/zSJHqUbNa0eJuEkRa6DXbZvh1YPWBtYQoPV17NlDpBw1Vw==", + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.33.4.tgz", + "integrity": "sha512-ln18hs7dMffelP47tpkaR+V5Tj6coykNyxJrlcmCormPqRQjB/Gv4cu2FfBG+PMzIfdZp2CLDsrrB1NPU22Qhg==", "dev": true }, "acorn": { diff --git a/package.json b/package.json index 83fbffe..8ab49c8 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,11 @@ "@octokit/request-error": "^2.1.0" }, "devDependencies": { - "@types/node": "^14.14.25", + "@types/node": "^16.11.7", "@types/node-fetch": "^2.5.8", "@typescript-eslint/eslint-plugin": "^3.7.1", "@typescript-eslint/parser": "^3.7.1", - "@vercel/ncc": "^0.27.0", + "@vercel/ncc": "^0.33.4", "ava": "^3.11.0", "eslint": "^7.5.0", "eslint-config-prettier": "^6.11.0",