File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,6 @@ for PROJECT in $PROJECTS; do
1515 echo " Deprecating ${PROJECT} ..."
1616 cargo yank --version " ${VERSION} " " ${PROJECT} "
1717done
18+
19+ # npm deprecate
20+ npm deprecate " float-pigment-css@${VERSION} " --registry https://registry.npmjs.org -m " sync with cargo yank"
Original file line number Diff line number Diff line change 5252 exit -1
5353fi
5454
55+ # run wasm-pack
56+ if wasm-pack build float-pigment-css --target nodejs --features nodejs-package; then
57+ echo ' WebAssembly built for float-pigment-css.'
58+ else
59+ echo ' Failed to build WebAssembly package for float-pigment-css! Abort.'
60+ exit -1
61+ fi
62+
5563# git operations
5664if [ -z " $( git status --porcelain) " ]; then
5765 echo ' Git status OK.'
@@ -113,3 +121,9 @@ for PROJECT in $PROJECTS; do
113121 echo " Publishing ${PROJECT} ..."
114122 cargo publish -p " ${PROJECT} "
115123done
124+
125+ # npm publish
126+ cd float-pigment-css/pkg
127+ echo " Publishing NPM package for float-pigment-css..."
128+ npm publish --registry https://registry.npmjs.org
129+ cd ../..
You can’t perform that action at this time.
0 commit comments