Skip to content

Commit 8e287d5

Browse files
committed
build: copy README/LICENSE from repo root
1 parent 204fe98 commit 8e287d5

File tree

4 files changed

+26
-13
lines changed

4 files changed

+26
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package-lock.json
66
packages/*/README.md
77
!packages/nuxi/README.md
88
packages/*/LICENSE
9+
docs/LICENSE
910
*/**/yarn.lock
1011
/.yarn
1112

scripts/release-edge.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,25 @@ fi
2121
# use absolute urls for better rendering on npm
2222
sed -i.bak 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md
2323

24+
REPO_ROOT=$(pwd)
25+
2426
# Release packages
25-
for p in packages/* docs ; do
26-
if [[ $p == "packages/nuxi" ]] ; then
27+
for PKG in packages/* docs ; do
28+
if [[ $PKG == "packages/nuxi" ]] ; then
2729
continue
2830
fi
29-
if [[ $p == "packages/test-utils" ]] ; then
31+
if [[ $PKG == "packages/test-utils" ]] ; then
3032
continue
3133
fi
32-
if [[ $p == "packages/ui-templates" ]] ; then
34+
if [[ $PKG == "packages/ui-templates" ]] ; then
3335
continue
3436
fi
35-
pushd $p
36-
echo "Publishing $p"
37-
cp ../../LICENSE .
38-
cp ../../README.md .
37+
pushd $PKG
38+
echo "Publishing $PKG"
39+
cp $REPO_ROOT/LICENSE .
40+
if [[ $PKG != "docs" ]]; then
41+
cp $REPO_ROOT/README.md .
42+
fi
3943
pnpm publish --access public --no-git-checks --tag $TAG
4044
popd
4145
done

scripts/release-rc.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ pnpm build
1111
# use absolute urls for better rendering on npm
1212
sed -i.bak 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md
1313

14+
REPO_ROOT=$(pwd)
15+
1416
# Release packages
1517
for PKG in packages/* docs ; do
1618
if [[ $PKG == "packages/nuxi" ]] ; then
@@ -19,7 +21,7 @@ for PKG in packages/* docs ; do
1921
if [[ $PKG == "packages/test-utils" ]] ; then
2022
continue
2123
fi
22-
if [[ $p == "packages/ui-templates" ]] ; then
24+
if [[ $PKG == "packages/ui-templates" ]] ; then
2325
continue
2426
fi
2527
pushd $PKG
@@ -28,8 +30,10 @@ for PKG in packages/* docs ; do
2830
TAG="rc"
2931
fi
3032
echo "⚡ Publishing $PKG with tag $TAG"
31-
cp ../../LICENSE .
32-
cp ../../README.md .
33+
cp $REPO_ROOT/LICENSE .
34+
if [[ $PKG != "docs" ]]; then
35+
cp $REPO_ROOT/README.md .
36+
fi
3337
pnpm publish --access public --no-git-checks --tag $TAG
3438
popd > /dev/null
3539
done

scripts/release.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ pnpm build
1111
# use absolute urls for better rendering on npm
1212
sed -i.bak 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md
1313

14+
REPO_ROOT=$(pwd)
15+
1416
# Release packages
1517
for PKG in packages/* docs ; do
1618
if [[ $PKG == "packages/nuxi" ]] ; then
@@ -25,8 +27,10 @@ for PKG in packages/* docs ; do
2527
pushd $PKG
2628
TAG="latest"
2729
echo "⚡ Publishing $PKG with tag $TAG"
28-
cp ../../LICENSE .
29-
cp ../../README.md .
30+
cp $REPO_ROOT/LICENSE .
31+
if [[ $PKG != "docs" ]]; then
32+
cp $REPO_ROOT/README.md .
33+
fi
3034
pnpm publish --access public --no-git-checks --tag $TAG
3135
popd > /dev/null
3236
done

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy