From b5d0b598247dd3be894b8964875f45003d584de7 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Tue, 18 Jan 2022 09:25:51 +0900 Subject: [PATCH] bump Node.js v16 (#935) --- .github/workflows/test-cpan-installer.yml | 4 ++-- .github/workflows/test.yml | 20 ++++++++++---------- action.yml | 2 +- tsconfig.json | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test-cpan-installer.yml b/.github/workflows/test-cpan-installer.yml index 580767ee7..496b5cc79 100644 --- a/.github/workflows/test-cpan-installer.yml +++ b/.github/workflows/test-cpan-installer.yml @@ -46,10 +46,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Set Node.js 12.x + - name: Set Node.js 16.x uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: 16.x cache: npm - run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d6433afbc..42b92278d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,10 +30,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Set Node.js 12.x + - name: Set Node.js 16.x uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: 16.x cache: npm - run: npm ci @@ -108,10 +108,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Set Node.js 12.x + - name: Set Node.js 16.x uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: 16.x cache: npm - run: npm ci @@ -189,10 +189,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Set Node.js 12.x + - name: Set Node.js 16.x uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: 16.x cache: npm - run: npm ci @@ -269,10 +269,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Set Node.js 12.x + - name: Set Node.js 16.x uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: 16.x cache: npm - run: npm ci @@ -341,10 +341,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Set Node.js 12.x + - name: Set Node.js 16.x uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: 16.x cache: npm - run: npm ci - run: npm run format-check diff --git a/action.yml b/action.yml index 0a1b04a3f..1b5194c80 100644 --- a/action.yml +++ b/action.yml @@ -53,7 +53,7 @@ outputs: It contains useful information to use as the cache key, e.g. the platform, the version of perl, the compiler option for building perl. runs: - using: "node12" + using: "node16" main: "dist/index.js" branding: icon: "play" diff --git a/tsconfig.json b/tsconfig.json index 805b69580..cc3cf3474 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { /* Basic Options */ - "target": "es2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ + "target": "es2021", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ // "lib": [], /* Specify library files to be included in the compilation. */ // "allowJs": true, /* Allow javascript files to be compiled. */