From 9c95a48fb07cda64b6b4b7d3275adff22d75b762 Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner <82244926+marc-aurele-besner@users.noreply.github.com> Date: Thu, 6 Jun 2024 07:51:48 -0400 Subject: [PATCH] restore readme and workflow to work with bun --- .github/workflows/build.yaml | 17 ++++++++++------- README.md | 14 +++++++++----- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3d0b5b58..5574b2ad 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,22 +10,25 @@ jobs: - name: Checkout ๐Ÿ›Ž๏ธ uses: actions/checkout@v3 - - name: Set up Node.js ๐Ÿž + - name: Set up Node.js uses: actions/setup-node@v2 with: node-version: '18' - - name: Install Bun (via Bun action) ๐Ÿž - uses: oven-sh/setup-bun@v1 + - name: Enable Corepack + run: corepack enable + + - name: Set Yarn version to Berry + run: corepack prepare yarn@4.2.2 --activate - name: Install dependencies - run: bun install + run: yarn install - name: Build auto-utils package ๐Ÿ”ง - run: bun run --filter '@autonomys/auto-utils' build + run: yarn workspace @autonomys/auto-utils build - name: Build all packages ๐Ÿ”ง - run: bun run build + run: yarn build - name: Run tests ๐Ÿงช - run: bun test + run: yarn test diff --git a/README.md b/README.md index 0c012393..3b9866e1 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The repository is organized as follows: ## Requirements - Node.js -- [Bun 1.0.0 or higher](https://bun.sh/docs/installation#installing) +- Yarn 4 ## Setup @@ -25,9 +25,13 @@ The repository is organized as follows: `cd auto-sdk` -3. **Install dependencies:** +3. **Set Yarn to use the Berry version:** - `bun install` + `yarn set version berry` + +4. **Install dependencies:** + + `yarn install` ## Scripts @@ -35,13 +39,13 @@ The repository is organized as follows: To build all packages: -`bun build` +`yarn run build` ### Test To run tests for all packages: -`bun test` +`yarn run test` ### Localhost testing