Skip to content

Commit

Permalink
chore: all workflow yarn to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Feb 6, 2025
1 parent df28b8c commit 88b7ff5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ jobs:
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
# 👇 Install dependencies with the same package manager used in the project (replace it as needed) e.g. yarn, npm, pnpm
run: yarn
run: bun install --immutable

- name: Build
run: yarn build-only-package
run: bun build-only-package

- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/react-headless-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v4
- uses: oven-sh/setup-bun@v2
with:
node-version: "20.x"
bun-version: latest

- name: Install dependencies
run: yarn install --frozen-lockfile
run: bun install --immutable

- name: Build headless common dependencies
run: yarn workspace @seed-design/dom-utils build && yarn workspace @seed-design/react-primitive build
run: bun --filter @seed-design/dom-utils build && bun --filter @seed-design/react-primitive build

- name: Run tests
run: yarn headless:test
run: bun headless:test
12 changes: 5 additions & 7 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,19 @@ jobs:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
- uses: oven-sh/setup-bun@v2
with:
node-version: 18.x
cache: yarn
bun-version: latest

- name: Install Dependencies
run: yarn install --immutable
run: bun install --immutable

- name: 릴리즈 Pull Request를 만들거나 패키지를 배포해요
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
version: yarn version
publish: bun release
version: bun version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit 88b7ff5

Please sign in to comment.