Skip to content

Commit

Permalink
chore: rename to wnfs-wasm and actions fix *maybe* (#116)
Browse files Browse the repository at this point in the history
Release-As: 0.1.10
  • Loading branch information
Zeeshan Lakhani authored Dec 6, 2022
1 parent a370749 commit 9ffad56
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.repository_owner == 'wnfs-wg'

outputs:
releases_created: ${{ steps.release.outputs['wnfs--release-created'] || steps.release.outputs['wnfs-wasm--release-created'] }}

steps:
- name: Run release-please
id: release
Expand Down
7 changes: 3 additions & 4 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"wnfs": "0.1.10",
"wasm-wnfs": "0.1.9",
"wnfs-wasm": "0.1.10",
"wnfs-bench": "0.0.1"
"wnfs": "0.1.9",
"wnfs-wasm": "0.1.9",
"wnfs-bench": "0.1.9"
}
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"bump-patch-for-minor-pre-major": true,
"packages": {
"wnfs": {},
"wasm-wnfs": {}
"wnfs-wasm": {}
}
}
8 changes: 4 additions & 4 deletions scripts/rs-wnfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ build_fs() {
}

build_wasm() {
display_header "💿 | BUILDING WASM-WNFS PROJECT | 💿"
display_header "💿 | BUILDING WNFS-WASM PROJECT | 💿"
cd $script_dir/../wnfs-wasm
WASM_BINDGEN_WEAKREF=1 wasm-pack build --target web
sed -i.bak \
-e 's/"name": "wasm-wnfs"/"name": "wnfs",\n "type": "module"/g' \
-e 's/"module": "wasm_wnfs\.js"/"module": "wasm_wnfs\.js",\n "main": "wasm_wnfs\.js"/g' \
-e 's/"name": "wnfs-wasm"/"name": "wnfs",\n "type": "module"/g' \
-e 's/"module": "wnfs_wasm\.js"/"module": "wnfs_wasm\.js",\n "main": "wasm_wnfs\.js"/g' \
pkg/package.json
rm pkg/package.json.bak
}
Expand Down Expand Up @@ -144,7 +144,7 @@ test_fs() {
}

test_wasm() {
display_header "🧪 | RUNNING WASM-WNFS TESTS | 🧪"
display_header "🧪 | RUNNING WNFS-WASM TESTS | 🧪"
cd $script_dir/../wnfs-wasm
yarn playwright test
}
Expand Down
2 changes: 1 addition & 1 deletion wnfs-bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wnfs-bench"
version = "0.0.1"
version = "0.1.9"
description = "WNFS Benchmarks"
publish = false
edition = "2021"
Expand Down
6 changes: 3 additions & 3 deletions wnfs-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-wnfs"
version = "0.1.10"
name = "wnfs-wasm"
version = "0.1.9"
description = "WebNative Filesystem API (WebAssembly)"
keywords = ["wnfs", "wasm", "webnative", "ipfs", "decentralisation"]
categories = [
Expand Down Expand Up @@ -29,7 +29,7 @@ rand_core = "0.6"
wasm-bindgen = { version = "0.2", optional = true, features = ["serde-serialize"] }
wasm-bindgen-futures = { version = "0.4", optional = true }
web-sys = { version = "0.3", optional = true }
wnfs = { path = "../wnfs", version = "0.1.10" }
wnfs = { path = "../wnfs", version = "0.1.9" }

[dev-dependencies]
wasm-bindgen-test = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion wnfs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wnfs"
version = "0.1.10"
version = "0.1.9"
description = "WebNative filesystem core implementation"
keywords = ["wnfs", "webnative", "ipfs", "decentralisation"]
categories = [
Expand Down

0 comments on commit 9ffad56

Please sign in to comment.