Skip to content

Commit 7b8d6d1

Browse files
committed
chore: Add release next script
1 parent 382d410 commit 7b8d6d1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

scripts/release-next.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Restore all git changes
6+
git restore -s@ -SW -- packages
7+
8+
# Build all once to ensure things are nice
9+
pnpm build
10+
11+
# Release packages
12+
for PKG in packages/* ; do
13+
pushd $PKG
14+
TAG="next"
15+
echo "⚡ Publishing $PKG with tag $TAG"
16+
cp ../../LICENSE .
17+
pnpm publish --access public --no-git-checks --tag $TAG
18+
popd > /dev/null
19+
done

0 commit comments

Comments
 (0)