Skip to content

Commit 86ea7b8

Browse files
authored
Merge pull request #12 from cyanxiao/dev
chore: migrate project from Yarn to Bun
2 parents c648c9c + 0f0b4c9 commit 86ea7b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+580
-228416
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,38 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [20]
14+
bun-version: [latest]
1515

1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919

20-
- name: Setup Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v4
20+
- name: Setup Bun
21+
uses: oven-sh/setup-bun@v1
2222
with:
23-
node-version: ${{ matrix.node-version }}
24-
cache: "yarn"
23+
bun-version: latest
2524

2625
- name: Install dependencies
27-
run: yarn install --frozen-lockfile
26+
run: bun install --frozen-lockfile
2827

2928
- name: Lint code
30-
run: yarn lint
29+
run: bun run lint
3130

3231
- name: Build project
33-
run: yarn build
32+
run: bun run build
3433

3534
- name: Run tests
36-
run: yarn test
35+
run: bun run test
3736

3837
- name: Package action
39-
run: yarn package
38+
run: bun run package
4039

4140
- name: Check dist is up to date
4241
run: |
4342
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
4443
echo "Detected uncommitted changes after build. See status below:"
4544
git diff --exit-code dist/
46-
echo "Run 'yarn package' and commit the changes."
45+
echo "Run 'bun run package' and commit the changes."
4746
exit 1
4847
fi
4948

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,21 @@ jobs:
2525
with:
2626
fetch-depth: 0
2727

28-
- name: Setup Node.js
29-
uses: actions/setup-node@v4
28+
- name: Setup Bun
29+
uses: oven-sh/setup-bun@v1
3030
with:
31-
node-version: "20"
32-
cache: "yarn"
31+
bun-version: latest
3332

3433
- name: Install dependencies
35-
run: yarn install --frozen-lockfile
34+
run: bun install --frozen-lockfile
3635

3736
- name: Run tests
38-
run: yarn test
37+
run: bun run test
3938

4039
- name: Build and package
4140
run: |
42-
yarn build
43-
yarn package
41+
bun run build
42+
bun run package
4443
4544
- name: Get version from tag
4645
id: get_version

bun.lockb

85 KB
Binary file not shown.

dist/__tests__/setup.d.ts

Whitespace-only changes.

dist/__tests__/setup.d.ts.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/__tests__/setup.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

dist/__tests__/setup.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/github-client.d.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

dist/github-client.d.ts.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/github-client.js

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)