diff --git a/.github/workflows/CI-WASM.yml b/.github/workflows/CI-WASM.yml index c5b36eb..b76cad0 100644 --- a/.github/workflows/CI-WASM.yml +++ b/.github/workflows/CI-WASM.yml @@ -92,17 +92,15 @@ jobs: - name: Publish run: | cd crates/wasm - export VERSION=$(git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$") - export NEXT_VERSION=$(it log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+") - if $VERSION; + if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$"; then echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - sed -i 's/TO_BE_DEFINED/$VERSION/g' package.json + sed -i 's/TO_BE_DEFINED/$(git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$")/g' package.json npm publish --access public elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+"; then echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - sed -i 's/TO_BE_DEFINED/$NEXT_VERSION/g' package.json + sed -i 's/TO_BE_DEFINED/$(it log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+")/g' package.json npm publish --tag next --access public else echo "Not a release, skipping publish" diff --git a/npm/android-arm-eabi/package.json b/npm/android-arm-eabi/package.json index 40c7b79..7b455b7 100644 --- a/npm/android-arm-eabi/package.json +++ b/npm/android-arm-eabi/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-android-arm-eabi", - "version": "1.0.6", + "version": "1.1.2", "os": [ "android" ], diff --git a/npm/android-arm64/package.json b/npm/android-arm64/package.json index a415e99..fec9d3e 100644 --- a/npm/android-arm64/package.json +++ b/npm/android-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-android-arm64", - "version": "1.0.6", + "version": "1.1.2", "os": [ "android" ], diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index cec7e75..2a5e528 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-darwin-arm64", - "version": "1.0.6", + "version": "1.1.2", "os": [ "darwin" ], diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index b034e4c..b0c41ae 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-darwin-x64", - "version": "1.0.6", + "version": "1.1.2", "os": [ "darwin" ], diff --git a/npm/freebsd-x64/package.json b/npm/freebsd-x64/package.json index 0295c79..de1e158 100644 --- a/npm/freebsd-x64/package.json +++ b/npm/freebsd-x64/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-freebsd-x64", - "version": "1.0.6", + "version": "1.1.2", "os": [ "freebsd" ], diff --git a/npm/linux-arm-gnueabihf/package.json b/npm/linux-arm-gnueabihf/package.json index 461bb24..2793661 100644 --- a/npm/linux-arm-gnueabihf/package.json +++ b/npm/linux-arm-gnueabihf/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-linux-arm-gnueabihf", - "version": "1.0.6", + "version": "1.1.2", "os": [ "linux" ], diff --git a/npm/linux-arm64-gnu/package.json b/npm/linux-arm64-gnu/package.json index 90025e9..f5ff760 100644 --- a/npm/linux-arm64-gnu/package.json +++ b/npm/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-linux-arm64-gnu", - "version": "1.0.6", + "version": "1.1.2", "os": [ "linux" ], diff --git a/npm/linux-arm64-musl/package.json b/npm/linux-arm64-musl/package.json index f3b9d47..10fb464 100644 --- a/npm/linux-arm64-musl/package.json +++ b/npm/linux-arm64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-linux-arm64-musl", - "version": "1.0.6", + "version": "1.1.2", "os": [ "linux" ], diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index 637f052..fcfd08d 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-linux-x64-gnu", - "version": "1.0.6", + "version": "1.1.2", "os": [ "linux" ], diff --git a/npm/linux-x64-musl/package.json b/npm/linux-x64-musl/package.json index c9a6f68..5506e27 100644 --- a/npm/linux-x64-musl/package.json +++ b/npm/linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-linux-x64-musl", - "version": "1.0.6", + "version": "1.1.2", "os": [ "linux" ], diff --git a/npm/win32-arm64-msvc/package.json b/npm/win32-arm64-msvc/package.json index bf4695d..a8ef29d 100644 --- a/npm/win32-arm64-msvc/package.json +++ b/npm/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-win32-arm64-msvc", - "version": "1.0.6", + "version": "1.1.2", "os": [ "win32" ], diff --git a/npm/win32-ia32-msvc/package.json b/npm/win32-ia32-msvc/package.json index a009bd0..735f9e7 100644 --- a/npm/win32-ia32-msvc/package.json +++ b/npm/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-win32-ia32-msvc", - "version": "1.0.6", + "version": "1.1.2", "os": [ "win32" ], diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index 056ae64..8bfae16 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum-win32-x64-msvc", - "version": "1.0.6", + "version": "1.1.2", "os": [ "win32" ], diff --git a/package-lock.json b/package-lock.json index f7727da..7d109fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum", - "version": "1.0.6", + "version": "1.1.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 6853ee5..218fb5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leo91000/subset-sum", - "version": "1.1.1", + "version": "1.1.2", "main": "index.js", "types": "index.d.ts", "napi": {