From fdbbfe8ddbbb49c610cf6ab68a0d11bc3c9855b1 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sat, 19 Jun 2021 13:27:47 +0200 Subject: [PATCH] Update pre_release.yml node to v16 --- .github/workflows/pre_release.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pre_release.yml b/.github/workflows/pre_release.yml index f99027c89..243cff4c4 100644 --- a/.github/workflows/pre_release.yml +++ b/.github/workflows/pre_release.yml @@ -13,36 +13,35 @@ jobs: steps: - - name: Checkout source code + - name: Get EMS-ESP source code and version uses: actions/checkout@v2 - - - name: Get build variables id: build_info run: | version=`grep -E '^#define EMSESP_APP_VERSION' ./src/version.h | awk -F'"' '{print $2}'` echo "::set-output name=version::$version" - - name: Setup Python - uses: actions/setup-python@v2 - - - name: Install pio + - name: Install PlatformIO + uses: actions/setup-python@v2 run: | python -m pip install --upgrade pip pip install -U platformio platformio upgrade platformio update - - name: Build web + - name: Build WebUI + uses: actions/setup-node@v2 + with: + node-version: '16' run: | cd interface - npm install + npm ci npm run build - name: Build firmware run: | platformio run -e ci - - name: Release + - name: Create a GH Release id: "automatic_releases" uses: "marvinpinto/action-automatic-releases@latest" with: @@ -53,4 +52,4 @@ jobs: files: | CHANGELOG_LATEST.md ./build/firmware/*.* - +