diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 16bb380..c72c0c9 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -22,10 +22,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: '14' + node-version-file: '.nvmrc' cache: 'npm' - run: npm i -g npm@7 - run: npm ci @@ -48,12 +48,12 @@ jobs: - build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: '14' + node-version-file: '.nvmrc' cache: 'npm' - uses: actions/download-artifact@v2 with: @@ -88,10 +88,10 @@ jobs: nodeCount: [2] nodeIndex: [0, 1] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: '14' + node-version-file: '.nvmrc' cache: 'npm' - uses: actions/download-artifact@v2 with: @@ -122,7 +122,7 @@ jobs: lint-integrations-buildkite: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: 'docker://buildkite/plugin-linter' with: args: --id check-run-reporter/check-run-reporter --path /github/workspace/integrations/check-run-reporter-buildkite-plugin @@ -132,7 +132,7 @@ jobs: - build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: recursive - uses: actions/download-artifact@v2 @@ -154,10 +154,10 @@ jobs: - test-integrations-buildkite runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: '14' + node-version-file: '.nvmrc' cache: 'npm' - run: npm i -g npm@7 - run: npm ci diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..ff65059 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v16.13.0 diff --git a/package.json b/package.json index 702715e..3eb12fe 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "engines": { - "node": ">=14", + "node": ">=16", "npm": ">=7" }, "scripts": { diff --git a/tsconfig.json b/tsconfig.json index 1db33d4..4eac104 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ "outDir": "dist/types", "resolveJsonModule": true, "strict": true, - "target": "es2020", // node 14 + "target": "es2021", // node 16 "types": [ "jest", "node"