From d9fc74b3c895fe60a1a0792e254e9b2b35c4ad54 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Thu, 29 Oct 2020 13:11:33 +0100 Subject: [PATCH 1/3] feat: use node v14 --- .github/workflows/build.yml | 2 +- action.yml | 2 +- package.json | 4 ++-- yarn.lock | 16 ++++------------ 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cc38030e1..ee410cd89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: env: VERSION: v0 - NODE_VERSION: 12 + NODE_VERSION: 14 YARN_CACHE_KEY: v0 YARN_CACHE_FOLDER: .cache/yarn # https://github.com/chalk/supports-color/issues/106 diff --git a/action.yml b/action.yml index 935145cc2..f158d7b7d 100644 --- a/action.yml +++ b/action.yml @@ -50,5 +50,5 @@ inputs: default: false runs: - using: 'node12' + using: 'node14' main: 'dist/index.js' diff --git a/package.json b/package.json index 5a30f21e4..05707e047 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "author": "Rhys Arkins ", "main": "dist/index.js", "engines": { - "node": " >=12.0.0", + "node": " >=14.15.0", "yarn": ">=1.22.0" }, "scripts": { @@ -43,7 +43,7 @@ "@semantic-release/github": "7.1.1", "@semantic-release/npm": "7.0.6", "@types/jest": "26.0.15", - "@types/node": "12.19.3", + "@types/node": "14.14.6", "@types/semver": "7.3.4", "@typescript-eslint/eslint-plugin": "4.6.0", "@typescript-eslint/parser": "4.6.0", diff --git a/yarn.lock b/yarn.lock index 7ff81398b..7f9a31436 100644 --- a/yarn.lock +++ b/yarn.lock @@ -956,10 +956,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.3.tgz#e1c09064121f894baaad2bd9f12ce4a41bffb274" integrity sha512-33/L34xS7HVUx23e0wOT2V1qPF1IrHgQccdJVm9uXGTB9vFBrrzBtkQymT8VskeKOxjz55MSqMv0xuLq+u98WQ== -"@types/node@12.19.3": - version "12.19.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.19.3.tgz#a6e252973214079155f749e8bef99cc80af182fa" - integrity sha512-8Jduo8wvvwDzEVJCOvS/G6sgilOLvvhn1eMmK3TW8/T217O7u1jdrK6ImKLv80tVryaPSVeKu6sjDEiFjd4/eg== +"@types/node@14.14.6": + version "14.14.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.6.tgz#146d3da57b3c636cc0d1769396ce1cfa8991147f" + integrity sha512-6QlRuqsQ/Ox/aJEQWBEJG7A9+u7oSYl3mem/K8IzxXG/kAGbV1YPD9Bg9Zw3vyxC/YP+zONKwy8hGkSt1jxFMw== "@types/node@^13.7.0": version "13.13.28" @@ -6346,7 +6346,6 @@ npm@^6.13.0: cmd-shim "^3.0.3" columnify "~1.5.4" config-chain "^1.1.12" - debuglog "*" detect-indent "~5.0.0" detect-newline "^2.1.0" dezalgo "~1.0.3" @@ -6361,7 +6360,6 @@ npm@^6.13.0: has-unicode "~2.0.1" hosted-git-info "^2.8.8" iferr "^1.0.2" - imurmurhash "*" infer-owner "^1.0.4" inflight "~1.0.6" inherits "^2.0.4" @@ -6380,14 +6378,8 @@ npm@^6.13.0: libnpx "^10.2.4" lock-verify "^2.1.0" lockfile "^1.0.4" - lodash._baseindexof "*" lodash._baseuniq "~4.6.0" - lodash._bindcallback "*" - lodash._cacheindexof "*" - lodash._createcache "*" - lodash._getnative "*" lodash.clonedeep "~4.5.0" - lodash.restparam "*" lodash.union "~4.6.0" lodash.uniq "~4.5.0" lodash.without "~4.4.0" From b5b87ef9be7b0bb14ee8cfeaae80d8f4bfcbe00f Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Thu, 29 Oct 2020 13:19:16 +0100 Subject: [PATCH 2/3] fix: add required node version --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1fa717066..93f3777f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,11 @@ jobs: timeout-minutes: 10 steps: + - name: Set up Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v1.4.4 + with: + node-version: ${{ env.NODE_VERSION }} + - uses: actions/checkout@v2.3.3 - name: Cache Yarn packages @@ -37,9 +42,9 @@ jobs: uses: actions/cache@v2.1.2 with: path: node_modules - key: ${{ runner.os }}-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-${{ env.NODE_VERSION }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-${{ matrix.node-version }}-yarn- + ${{ runner.os }}-${{ env.NODE_VERSION }}-yarn- # Clear caches on cache miss, otherwise they will grow indefinitely - name: Clear yarn cache From 178ee4be1bbad7bde1b82de5ad20c235675246e3 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Thu, 29 Oct 2020 13:25:59 +0100 Subject: [PATCH 3/3] fix: need v14 lts --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93f3777f7..f6f1608d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: env: VERSION: v0 - NODE_VERSION: 14 + NODE_VERSION: ^14.15.0 YARN_CACHE_KEY: v0 YARN_CACHE_FOLDER: .cache/yarn # https://github.com/chalk/supports-color/issues/106