replace yarn with pnpm

This commit is contained in:
proddy
2025-05-18 18:00:46 +02:00
parent b0d111d86f
commit 024c4a0c21
3 changed files with 40 additions and 36 deletions

View File

@@ -10,7 +10,7 @@ on:
jobs: jobs:
pre-release: pre-release:
name: 'Automatic pre-release build' name: 'Build Dev Release'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -19,10 +19,10 @@ jobs:
with: with:
python-version: '3.13' python-version: '3.13'
- name: Install Node.js 20 - name: Install Node.js 22
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20.x' node-version: 22
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -50,7 +50,7 @@ jobs:
pnpm build pnpm build
pnpm webUI pnpm webUI
- name: Build all PIO target environments from default_envs - name: Build all PIO target environments
run: | run: |
platformio run platformio run
env: env:

View File

@@ -8,40 +8,41 @@ on:
jobs: jobs:
tagged-release: tagged-release:
name: 'Tagged Release' name: 'Build Stable Release'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Enable Corepack - name: Enable Corepack
run: corepack enable run: corepack enable pnpm
- name: Install python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install PlatformIO - name: Install PlatformIO
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -U platformio pip install -U platformio
- name: Build WebUI - name: Build the WebUI
run: | run: |
cd interface cd interface
yarn install pnpm install
yarn typesafe-i18n --no-watch pnpm typesafe-i18n --no-watch
sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts
yarn build pnpm build
yarn webUI pnpm webUI
- name: Build all PIO target environments from default_envs - name: Build all PIO target environments
run: | run: |
platformio run platformio run
env: env:

View File

@@ -8,24 +8,27 @@ on:
jobs: jobs:
pre-release: pre-release:
name: 'Automatic test-release build' name: 'Build Test Release'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4
- name: Enable Corepack - name: Install python 3.13
run: corepack enable uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.13'
- name: Use Node.js 20.x - name: Install Node.js 22
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20.x' node-version: 22
- name: Get EMS-ESP source code and version - name: Checkout repository
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable pnpm
- name: Get the EMS-ESP version
id: build_info id: build_info
run: | run: |
version=`grep -E '^#define EMSESP_APP_VERSION' ./src/emsesp_version.h | awk -F'"' '{print $2}'` version=`grep -E '^#define EMSESP_APP_VERSION' ./src/emsesp_version.h | awk -F'"' '{print $2}'`
@@ -36,16 +39,16 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -U platformio pip install -U platformio
- name: Build WebUI - name: Build the WebUI
run: | run: |
cd interface cd interface
yarn install pnpm install
yarn typesafe-i18n --no-watch pnpm typesafe-i18n --no-watch
sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts
yarn build pnpm build
yarn webUI pnpm webUI
- name: Build all target environments from default_envs - name: Build all target environments
run: | run: |
platformio run platformio run
env: env: