Skip to content

Commit 8d4dfe3

Browse files
committed
v0.7.9: Fix CI test, add local test script
- CI test now copies files to npm folder where .node exists - Added test-npm.sh for local testing before push - Test includes 'bum use 1.3.3' to verify full functionality
1 parent 263cf21 commit 8d4dfe3

File tree

6 files changed

+31
-12
lines changed

6 files changed

+31
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ jobs:
357357
- name: Test npm package locally
358358
run: |
359359
echo "Testing main package bin.js..."
360+
# Copy bin.js and index.js to a platform folder and test there
361+
cp bin.js index.js index.d.ts npm/linux-x64-gnu/
362+
cd npm/linux-x64-gnu
360363
node bin.js --version || (echo "❌ bin.js failed" && exit 1)
361364
echo "✅ bin.js works correctly"
362365
- name: Publish

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bum"
3-
version = "0.7.8"
3+
version = "0.7.9"
44
edition = "2021"
55

66
[lib]

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
VERSION="v0.7.8"
4+
VERSION="v0.7.9"
55

66
if ! bun &>/dev/null; then
77
curl -fsSL https://bun.sh/install | bash

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@owenizedd/bum",
3-
"version": "0.7.8",
3+
"version": "0.7.9",
44
"description": "Fast Bun version manager written in Rust",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -57,13 +57,13 @@
5757
"@napi-rs/cli": "^2.18.4"
5858
},
5959
"optionalDependencies": {
60-
"@owenizedd/bum-win32-x64-msvc": "0.7.8",
61-
"@owenizedd/bum-darwin-x64": "0.7.8",
62-
"@owenizedd/bum-linux-x64-gnu": "0.7.8",
63-
"@owenizedd/bum-linux-x64-musl": "0.7.8",
64-
"@owenizedd/bum-linux-arm64-gnu": "0.7.8",
65-
"@owenizedd/bum-linux-arm64-musl": "0.7.8",
66-
"@owenizedd/bum-darwin-arm64": "0.7.8",
67-
"@owenizedd/bum-darwin-universal": "0.7.8"
60+
"@owenizedd/bum-win32-x64-msvc": "0.7.9",
61+
"@owenizedd/bum-darwin-x64": "0.7.9",
62+
"@owenizedd/bum-linux-x64-gnu": "0.7.9",
63+
"@owenizedd/bum-linux-x64-musl": "0.7.9",
64+
"@owenizedd/bum-linux-arm64-gnu": "0.7.9",
65+
"@owenizedd/bum-linux-arm64-musl": "0.7.9",
66+
"@owenizedd/bum-darwin-arm64": "0.7.9",
67+
"@owenizedd/bum-darwin-universal": "0.7.9"
6868
}
6969
}

test-npm.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
# Quick local test to verify bin.js works with the native binding
3+
4+
set -e
5+
6+
echo "🔨 Building native binding..."
7+
bun run build
8+
9+
echo "📦 Testing bin.js --version..."
10+
node bin.js --version
11+
12+
echo "📦 Testing bin.js use 1.3.3..."
13+
node bin.js use 1.3.3
14+
15+
echo "✅ npm package test passed!"
16+

0 commit comments

Comments
 (0)