Do non-layered builds when running on master

Hopefully this will fix the release as it looks like we've introduced
backwards incompat changes in the js-sdk between the RC and the release,
which have now broken as we were incorrectly using the develop js-sdk
for release builds.
This commit is contained in:
David Baker 2026-02-24 17:26:51 +01:00
parent 1c5694e625
commit 77e1d055cd
2 changed files with 7 additions and 2 deletions

View File

@ -53,9 +53,14 @@ jobs:
cache: ${{ runner.os != 'Windows' && 'pnpm' || '' }}
node-version: "lts/*"
- name: Fetch layered build
- name: Install Dependencies (Layered)
if: ${{ github.ref != 'refs/heads/master' }}
run: ./scripts/layered.sh
- name: Install Dependencies (Non layered)
if: ${{ github.ref == 'refs/heads/master' }}
run: pnpm install --frozen-lockfile
- name: Copy config
run: cp element.io/develop/config.json config.json

View File

@ -25,7 +25,7 @@ jobs:
matrix:
include:
- name: Typescript Syntax Check
install: layered
install: ${{ github.ref == 'refs/heads/master' && 'normal' || 'layered' }}
command: "lint:types"
- name: ESLint
install: normal