Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate yarn to bun #12

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/cloudflare-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ jobs:
with:
node-version: "20.10.0"

- name: Yarn Install
run: yarn install
- name: Install bun
run: npm i -g bun

- name: Install dependencies
run: bun install

- name: Build the project
run: yarn build
run: bun build

- name: Wrangler Install
run: yarn add wrangler
run: bun add wrangler

- name: Publish to Cloudflare
env:
Expand All @@ -41,11 +44,11 @@ jobs:
IFS='/' read -ra fields <<< "$REPOSITORY"
projectName="${fields[1]}"
echo $projectName
yarn wrangler pages project list > project_list.txt
bun wrangler pages project list > project_list.txt
if grep -q $projectName project_list.txt; then
echo "Project found"
else
echo "Project not found"
yarn wrangler pages project create "$projectName" --production-branch "$PRODUCTION_BRANCH"
bun wrangler pages project create "$projectName" --production-branch "$PRODUCTION_BRANCH"
fi
yarn wrangler pages publish "$OUTPUT_DIRECTORY" --project-name "$projectName"
bun wrangler pages publish "$OUTPUT_DIRECTORY" --project-name "$projectName"
6 changes: 4 additions & 2 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install bun
run: npm i -g bun
- name: Install dependencies
run: yarn install
run: bun install
- name: Run typecheck
run: yarn tsc --noEmit
run: bun tsc --noEmit
5 changes: 0 additions & 5 deletions .yarnrc.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ The bot kernel is designed to:
```bash
git clone https://github.com/ubiquity/ubiquibot-kernel
cd ubiquibot-kernel
yarn
yarn dev
bun install
bun dev
```
Binary file added bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
"@commitlint/config-conventional"
]
},
"packageManager": "yarn@4.0.2"
"packageManager": "bun@1.0.24"
}
Loading