From 34557c202de1df207d8ebdccf47705d25779e001 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Wed, 4 Jan 2023 20:44:09 +0000 Subject: [PATCH] Use node 16 for devcontainer and CI --- .devcontainer/devcontainer.json | 2 +- .github/workflows/check-dist.yml | 11 ++++++----- .github/workflows/test.yml | 7 ++++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 38b855c..1448b3b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,5 +2,5 @@ // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node { "name": "@actions/upload-artifact", - "image": "mcr.microsoft.com/devcontainers/typescript-node:0-18" + "image": "mcr.microsoft.com/devcontainers/typescript-node:0-16" } diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 217ad8f..59a4524 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -20,12 +20,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Set Node.js 12.x - uses: actions/setup-node@v1 + - name: Setup Node 16.x + uses: actions/setup-node@v3 with: - node-version: 12.x + node-version: 16.x + cache: 'npm' - name: Install dependencies run: npm ci @@ -41,7 +42,7 @@ jobs: id: diff # If index.js was different than expected, upload the expected version as an artifact - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && steps.diff.conclusion == 'failure' }} with: name: index.js diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f80b722..1b74a72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,10 +25,11 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Set Node.js 12.x - uses: actions/setup-node@v1 + - name: Setup Node 16.x + uses: actions/setup-node@v3 with: - node-version: 12.x + node-version: 16.x + cache: 'npm' - name: Install dependencies run: npm ci