Old
Steps
pre-req
Install locally
npm install -g vsce
npm install -g yarn
Create Build Folder
cd dendron
mkdir build
git clone https://github.com/dendronhq/dendron.git
cd dendron/packages/plugin-core/
Build Local
Create Build
. bootstrap/scripts/helpers.sh
setRegLocal
verdaccio
./bootstrap/scripts/createBuild.sh
# when releasing inside
./bootstrap/scripts/createInsider.sh
# when releaseing locally
./bootstrap/scripts/createReleaseLocal.sh
# when releasing to prod
setRegRemote
./bootstrap/scripts/createRelease.sh
# update integ branch
git branch -D integ-publish
git checkout -b integ-publish
git push --set-upstream origin integ-publish --force
Install Build
# if no ui changes
./scripts/pullBuild.sh
# if ui changes
./scripts/pullBuildAndSync.sh
# tmp
./scripts/pullBuild.sh
./scripts/sync_static.sh
./scripts/pack_and_install.sh
# navigate to build
pushd build/dendron/packages/plugin-core
echo "cleaning..."
rm -r out
echo "checkout..."
git reset --hard
git clean -f
git checkout master
git fetch
git branch -D integ-publish
git checkout --track origin/integ-publish
echo "installing..."
yarn install --no-lockfile
echo "package..."
./scripts/pack_and_install.sh
echo "done"
# optional, add before package
echo "syncing..."
./scripts/sync_static.sh
- NOTE: when you are testing, remember that all dependencies are LOCAL which means running
git push
and relying on external workflows won't work at this point
Publish New Version
pre-req
vsce login dendron
cat $OSVX_ACCESS > ~/.osvx
Build
setRegRemote
gco master
git pull
git merge dev-kevin
echo "creating release..."
./bootstrap/scripts/createInsider.sh
echo "patching 11ty
./bootstrap/scripts/patch11tyVersion.sh
echo "creating release..."
./bootstrap/scripts/createRelease.sh
echo "patching 11ty"
./bootstrap/scripts/patch11tyVersion.sh
echo "done"
Other
version=minor
lerna version $version
lerna publish from-package
lerna publish from-package --ignore-scripts
sleep 60
git reset --hard
git clean -f
git fetch
gco master
./scripts/pack_and_install.sh
re-publish
./unpublish.sh
lerna publish from-package --ignore-scripts
cleanup
cd $WORKSPACE_BUILD
gbD integ-publish
cd $WORKSPACE
gbD integ-publish
cook
unpublish a package
./unpublish.sh
install a specific version
version=0.42
./scripts/install.sh