From 3798c9bb8dd75c745dbffbfb4cc150251f669368 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Mon, 13 Dec 2021 18:43:22 +0530 Subject: [PATCH] build: bump node to latest LTS - ci/cd: switch macOS and windows to post-latest --- .github/workflows/build.yml | 4 ++-- .github/workflows/publish.yml | 16 +++++----------- package.json | 2 +- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a2f00db2..478919c3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,12 +12,12 @@ on: jobs: setup_and_build: - runs-on: macos-latest + runs-on: macos-11 steps: - name: Setup node uses: actions/setup-node@v2 with: - node-version: '16.4.0' + node-version: '16.13.1' - name: Set yarn version run: yarn set version 1.22.17 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 659e8966e..20c72781f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,12 +4,12 @@ on: workflow_dispatch jobs: build-macos: - runs-on: macos-latest + runs-on: macos-11 steps: - name: Setup node uses: actions/setup-node@v2 with: - node-version: '16.4.0' + node-version: '16.13.1' - name: Change yarn version run: yarn set version 1.22.17 @@ -57,10 +57,7 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: '16.4.0' - - - name: Change yarn version - run: yarn set version 1.22.17 + node-version: '16.13.1' - name: Checkout Books uses: actions/checkout@v2 @@ -93,7 +90,7 @@ jobs: yarn electron:build --linux --publish always build-windows: - runs-on: windows-latest + runs-on: windows-2022 defaults: run: shell: bash @@ -102,10 +99,7 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: '16.4.0' - - - name: Change yarn version - run: yarn set version 1.22.17 + node-version: '16.13.1' - name: Checkout Books uses: actions/checkout@v2 diff --git a/package.json b/package.json index 968088b4e..4c10c70ea 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "*.{js,vue}": "vue-cli-service lint" }, "engines": { - "node": ">=16.4.0", + "node": ">=16.13.1", "yarn": "1.22.17" }, "prettier": {