From 9ffad56e6ab402c8636b13563a5bf516fb962037 Mon Sep 17 00:00:00 2001 From: Zeeshan Lakhani Date: Tue, 6 Dec 2022 13:55:35 -0500 Subject: [PATCH] chore: rename to wnfs-wasm and actions fix *maybe* (#116) Release-As: 0.1.10 --- .github/workflows/release.yml | 3 +++ .release-please-manifest.json | 7 +++---- release-please-config.json | 2 +- scripts/rs-wnfs.sh | 8 ++++---- wnfs-bench/Cargo.toml | 2 +- wnfs-wasm/Cargo.toml | 6 +++--- wnfs/Cargo.toml | 2 +- 7 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b122def6..30fa481a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 11adcda4..8e3f6a3e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -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" } diff --git a/release-please-config.json b/release-please-config.json index 15f98c5c..3a349c6e 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -6,6 +6,6 @@ "bump-patch-for-minor-pre-major": true, "packages": { "wnfs": {}, - "wasm-wnfs": {} + "wnfs-wasm": {} } } diff --git a/scripts/rs-wnfs.sh b/scripts/rs-wnfs.sh index 2a3c6144..28f30a05 100755 --- a/scripts/rs-wnfs.sh +++ b/scripts/rs-wnfs.sh @@ -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 } @@ -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 } diff --git a/wnfs-bench/Cargo.toml b/wnfs-bench/Cargo.toml index 381945ff..8dd6daff 100644 --- a/wnfs-bench/Cargo.toml +++ b/wnfs-bench/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wnfs-bench" -version = "0.0.1" +version = "0.1.9" description = "WNFS Benchmarks" publish = false edition = "2021" diff --git a/wnfs-wasm/Cargo.toml b/wnfs-wasm/Cargo.toml index dd1ec488..17dc37d3 100644 --- a/wnfs-wasm/Cargo.toml +++ b/wnfs-wasm/Cargo.toml @@ -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 = [ @@ -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" diff --git a/wnfs/Cargo.toml b/wnfs/Cargo.toml index 8d9e8732..418adb42 100644 --- a/wnfs/Cargo.toml +++ b/wnfs/Cargo.toml @@ -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 = [