diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index bb3510769cb..7c6c4181b62 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -429,8 +429,6 @@ jobs: cargo install wasm-pack wasm-pack build --release --target web --scope janssenproject ls pkg - cd pkg - npm publish --access public - name: Archive and sign pkg contents id: archive_pkg working-directory: ${{ github.workspace }}/jans-cedarling/bindings/cedarling_wasm @@ -440,7 +438,11 @@ jobs: if [ "${TAG}" == "nightly" ]; then VERSION=nightly TAG="0.0.0" + npm unpublish @janssenproject/cedarling_wasm@0.0.0 --force fi + cd pkg + npm publish --access public + cd .. rm -rf pkg/.gitignore || echo "Failed to remove gitignore" tar -czvf cedarling_wasm_"${TAG}"_pkg.tar.gz -C pkg . sha256sum cedarling_wasm_"${TAG}"_pkg.tar.gz > cedarling_wasm_"${TAG}"_pkg.tar.gz.sha256sum diff --git a/jans-cedarling/bindings/cedarling_wasm/Cargo.toml b/jans-cedarling/bindings/cedarling_wasm/Cargo.toml index 9749bcf08e8..1490227b2df 100644 --- a/jans-cedarling/bindings/cedarling_wasm/Cargo.toml +++ b/jans-cedarling/bindings/cedarling_wasm/Cargo.toml @@ -4,6 +4,7 @@ version = "0.0.0" edition = "2021" description = "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine" license = "Apache-2.0" +repository = "https://github.com/JanssenProject/jans/tree/main/jans-cedarling" [lib] crate-type = ["cdylib"] # Required for WASM output