Nuxt/scripts/release-edge.sh

39 lines
785 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2021-07-29 14:13:10 +00:00
set -xe
# Restore all git changes
git restore -s@ -SW -- packages examples
TAG=${1:-latest}
# Bump versions to edge
pnpm jiti ./scripts/bump-edge
# Update token
if [[ ! -z ${NODE_AUTH_TOKEN} ]] ; then
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
npm whoami
fi
# Release packages
2021-08-11 21:02:01 +00:00
for p in packages/* ; do
2023-08-25 15:39:27 +00:00
if [[ $p == "packages/nuxi" ]] ; then
continue
fi
if [[ $p == "packages/test-utils" ]] ; then
continue
fi
2024-05-01 10:08:20 +00:00
if [[ $p == "packages/ui-templates" ]] ; then
continue
fi
pushd $p
echo "Publishing $p"
cp ../../LICENSE .
cp ../../README.md .
pnpm publish --access public --no-git-checks --tag $TAG
popd
done