Skip to content

Commit

Permalink
ci: remove the nightly package before trying to republish
Browse files Browse the repository at this point in the history
Signed-off-by: moabu <[email protected]>
  • Loading branch information
moabu committed Feb 6, 2025
1 parent b93ead3 commit bc0c872
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -440,7 +438,11 @@ jobs:
if [ "${TAG}" == "nightly" ]; then
VERSION=nightly
TAG="0.0.0"
npm unpublish @janssenproject/[email protected] --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
Expand Down
1 change: 1 addition & 0 deletions jans-cedarling/bindings/cedarling_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc0c872

Please sign in to comment.