chore(tooling): migrate seedit to Yarn 4

This commit is contained in:
Tommaso Casaburi
2026-03-19 13:41:03 +08:00
parent 53689708f4
commit 4698fa77fd
8 changed files with 21982 additions and 16263 deletions

View File

@@ -28,8 +28,9 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 22
- run: corepack enable
- name: Install dependencies (with Node v22)
run: yarn install --frozen-lockfile --ignore-engines
run: yarn install --immutable --ignore-engines
# make sure the ipfs executable is executable
- name: Download IPFS and set permissions (with Node v22)
run: node electron/download-ipfs && sudo chmod +x bin/linux/ipfs
@@ -77,6 +78,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 22
- run: corepack enable
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
@@ -89,7 +91,7 @@ jobs:
- run: pip install setuptools
- name: Install dependencies (with Node v22)
run: yarn install --frozen-lockfile --ignore-engines
run: yarn install --immutable --ignore-engines
# make sure the ipfs executable is executable
- name: Download IPFS and set permissions (with Node v22)
run: node electron/download-ipfs && sudo chmod +x bin/mac/ipfs
@@ -132,8 +134,9 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 22
- name: Install dependencies (with Node v22) # --network-timeout and --network-concurrency are yarn v1 flags.
run: yarn install --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- run: corepack enable
- name: Install dependencies (with Node v22)
run: yarn install --immutable
- name: Build React app (with Node v22)
run: npx cross-env NODE_ENV=production yarn build
- name: Build Electron app for Windows (x64)
@@ -171,11 +174,12 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 22
- run: corepack enable
- run: sudo apt install -y apksigner zipalign
# install all dependencies (including devDependencies needed for React build)
- name: Install dependencies (with Node v22)
run: yarn install --frozen-lockfile --ignore-engines
run: yarn install --immutable --ignore-engines
# build react app
- run: CI='' NODE_ENV=production yarn build
# set android versionCode and versionName
@@ -216,8 +220,9 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 22
- run: corepack enable
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-engines
run: yarn install --immutable --ignore-engines
- name: Generate final release body from GitHub assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -20,6 +20,7 @@ jobs:
with:
node-version: 22
cache: 'yarn'
- run: corepack enable
- name: Cache electron binaries
uses: actions/cache@v4
@@ -32,7 +33,7 @@ jobs:
run: |
for i in 1 2 3; do
echo "yarn install attempt $i"
yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break
yarn install --immutable --ignore-engines && break
sleep 5
[ "$i" = "3" ] && exit 1
done
@@ -90,6 +91,7 @@ jobs:
with:
node-version: 22
cache: 'yarn'
- run: corepack enable
- name: Install setuptools for native modules
run: pip3 install --break-system-packages setuptools || pip3 install --user setuptools || true
@@ -105,7 +107,7 @@ jobs:
run: |
for i in 1 2 3; do
echo "yarn install attempt $i"
yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break
yarn install --immutable --ignore-engines && break
sleep 5
[ "$i" = "3" ] && exit 1
done
@@ -151,6 +153,7 @@ jobs:
with:
node-version: 22
cache: 'yarn'
- run: corepack enable
- name: Install setuptools for native modules
run: pip3 install --break-system-packages setuptools || pip3 install --user setuptools || true
@@ -166,7 +169,7 @@ jobs:
run: |
for i in 1 2 3; do
echo "yarn install attempt $i"
yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break
yarn install --immutable --ignore-engines && break
sleep 5
[ "$i" = "3" ] && exit 1
done
@@ -212,6 +215,7 @@ jobs:
with:
node-version: 22
cache: 'yarn'
- run: corepack enable
- name: Cache electron binaries
uses: actions/cache@v4
@@ -225,7 +229,7 @@ jobs:
run: |
for i in 1 2 3; do
echo "yarn install attempt $i"
yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break
yarn install --immutable --ignore-engines && break
sleep 5
[ "$i" = "3" ] && exit 1
done