Skip to content

Commit 25e199d

Browse files
Merge pull request #670 from daydreamsai/ci-bump
chore: bump ci to bun
2 parents 9c64cd9 + 4333b0c commit 25e199d

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,10 @@ jobs:
2828
fetch-depth: 0
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030

31-
- name: Install pnpm
32-
uses: pnpm/action-setup@v4
31+
- name: Setup Bun
32+
uses: oven-sh/setup-bun@v2
3333
with:
34-
version: 9
35-
36-
- name: Setup Node.js
37-
uses: actions/setup-node@v4
38-
with:
39-
node-version: "20"
40-
cache: "pnpm"
41-
registry-url: "https://registry.npmjs.org"
34+
bun-version: latest
4235

4336
- name: Configure Git
4437
run: |
@@ -51,43 +44,43 @@ jobs:
5144
- name: Install dependencies
5245
env:
5346
HUSKY: 0
54-
run: pnpm install --frozen-lockfile --ignore-scripts
47+
run: bun install --no-scripts
5548

5649
- name: Ensure prepublishOnly hooks
5750
run: |
5851
chmod +x scripts/add-prepublish-hook.sh
5952
./scripts/add-prepublish-hook.sh
6053
6154
- name: Build packages
62-
run: pnpm run build:packages
55+
run: bun run build:packages
6356

6457
- name: Run tests
65-
run: pnpm test || echo "No tests configured"
58+
run: bun test || echo "No tests configured"
6659

6760
- name: Version packages with Lerna
6861
id: version
6962
env:
7063
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7164
run: |
7265
# Version packages with lerna (without publishing)
73-
pnpx lerna version ${{ github.event.inputs.release_type }} --conventional-commits --yes --no-private --force-publish --ignore-scripts --no-push
66+
bunx lerna version ${{ github.event.inputs.release_type }} --conventional-commits --yes --no-private --force-publish --ignore-scripts --no-push
7467
7568
# Get the new version tag
7669
echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
7770
78-
- name: Publish packages with pnpm
71+
- name: Publish packages with bun
7972
env:
8073
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8174
run: |
82-
# Find all packages and publish them using pnpm
75+
# Find all packages and publish them using bun
8376
for package in packages/*; do
8477
if [ -d "$package" ] && [ -f "$package/package.json" ]; then
8578
# Check if package is private
8679
IS_PRIVATE=$(cat "$package/package.json" | jq -r '.private // false')
8780
8881
if [ "$IS_PRIVATE" != "true" ]; then
8982
echo "Publishing $(basename $package)..."
90-
(cd "$package" && pnpm publish --no-git-checks --access public)
83+
(cd "$package" && bun publish --no-git-checks --access public)
9184
else
9285
echo "Skipping private package: $(basename $package)"
9386
fi

0 commit comments

Comments
 (0)