Update pre_release.yml

node to v16
This commit is contained in:
Proddy
2021-06-19 13:27:47 +02:00
committed by GitHub
parent e79d4603fc
commit fdbbfe8ddb

View File

@@ -13,36 +13,35 @@ jobs:
steps: steps:
- name: Checkout source code - name: Get EMS-ESP source code and version
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Get build variables
id: build_info id: build_info
run: | run: |
version=`grep -E '^#define EMSESP_APP_VERSION' ./src/version.h | awk -F'"' '{print $2}'` version=`grep -E '^#define EMSESP_APP_VERSION' ./src/version.h | awk -F'"' '{print $2}'`
echo "::set-output name=version::$version" echo "::set-output name=version::$version"
- name: Setup Python - name: Install PlatformIO
uses: actions/setup-python@v2 uses: actions/setup-python@v2
- name: Install pio
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -U platformio pip install -U platformio
platformio upgrade platformio upgrade
platformio update platformio update
- name: Build web - name: Build WebUI
uses: actions/setup-node@v2
with:
node-version: '16'
run: | run: |
cd interface cd interface
npm install npm ci
npm run build npm run build
- name: Build firmware - name: Build firmware
run: | run: |
platformio run -e ci platformio run -e ci
- name: Release - name: Create a GH Release
id: "automatic_releases" id: "automatic_releases"
uses: "marvinpinto/action-automatic-releases@latest" uses: "marvinpinto/action-automatic-releases@latest"
with: with:
@@ -53,4 +52,4 @@ jobs:
files: | files: |
CHANGELOG_LATEST.md CHANGELOG_LATEST.md
./build/firmware/*.* ./build/firmware/*.*