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

build: 📦 use bun as package manager #291

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 4 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ runs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ inputs.node_version }}
# This doesn't just set the registry url, but also sets
# the right configuration in .npmrc that reads NPM token
Expand All @@ -41,6 +40,8 @@ runs:
# and sets the NPM_CONFIG_USERCONFIG environment variable.
registry-url: https://registry.npmjs.org

- name: yarn install
- uses: oven-sh/setup-bun@v1

- name: bun install
shell: bash
run: yarn install --immutable
run: bun install --frozen-lockfile
12 changes: 6 additions & 6 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
- name: Build
run: yarn nx affected --base=last-release --target=build
run: bun nx affected --base=last-release --target=build

lint:
runs-on: ubuntu-latest
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
- name: Lint
run: yarn nx affected --base=last-release --target=lint
run: bun nx affected --base=last-release --target=lint

test:
runs-on: ubuntu-latest
Expand All @@ -35,7 +35,7 @@ jobs:
with:
node_version: ${{ matrix.node_version }}
- name: Test
run: yarn nx affected --base=last-release --target=test
run: bun nx affected --base=last-release --target=test

component-test:
runs-on: ubuntu-latest
Expand All @@ -44,9 +44,9 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
run: bun playwright install --with-deps
- name: Component Test
run: yarn nx affected --base=last-release --target=component-test --parallel=1
run: bun nx affected --base=last-release --target=component-test --parallel=1
- name: Upload test results on failure
uses: actions/upload-artifact@v2
if: failure()
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
- name: E2E
run: yarn nx affected --base=last-release --target=e2e --parallel=1
run: bun nx affected --base=last-release --target=e2e --parallel=1

release:
runs-on: ubuntu-latest
Expand Down
Binary file added bun.lockb
Binary file not shown.
8 changes: 8 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[install.lockfile]

# whether to save the lockfile to disk
save = true

# whether to save a non-Bun lockfile alongside bun.lockb
# only "yarn" is supported
print = "yarn"
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,5 @@
},
"workspaces": [
"packages/*"
],
"packageManager": "[email protected]"
]
}
Loading
Loading