File tree Expand file tree Collapse file tree 4 files changed +26
-13
lines changed Expand file tree Collapse file tree 4 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package-lock.json
6
6
packages /* /README.md
7
7
! packages /nuxi /README.md
8
8
packages /* /LICENSE
9
+ docs /LICENSE
9
10
* /** /yarn.lock
10
11
/.yarn
11
12
Original file line number Diff line number Diff line change 21
21
# use absolute urls for better rendering on npm
22
22
sed -i.bak ' s/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md
23
23
24
+ REPO_ROOT=$( pwd)
25
+
24
26
# 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
27
29
continue
28
30
fi
29
- if [[ $p == " packages/test-utils" ]] ; then
31
+ if [[ $PKG == " packages/test-utils" ]] ; then
30
32
continue
31
33
fi
32
- if [[ $p == " packages/ui-templates" ]] ; then
34
+ if [[ $PKG == " packages/ui-templates" ]] ; then
33
35
continue
34
36
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
39
43
pnpm publish --access public --no-git-checks --tag $TAG
40
44
popd
41
45
done
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ pnpm build
11
11
# use absolute urls for better rendering on npm
12
12
sed -i.bak ' s/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md
13
13
14
+ REPO_ROOT=$( pwd)
15
+
14
16
# Release packages
15
17
for PKG in packages/* docs ; do
16
18
if [[ $PKG == " packages/nuxi" ]] ; then
@@ -19,7 +21,7 @@ for PKG in packages/* docs ; do
19
21
if [[ $PKG == " packages/test-utils" ]] ; then
20
22
continue
21
23
fi
22
- if [[ $p == " packages/ui-templates" ]] ; then
24
+ if [[ $PKG == " packages/ui-templates" ]] ; then
23
25
continue
24
26
fi
25
27
pushd $PKG
@@ -28,8 +30,10 @@ for PKG in packages/* docs ; do
28
30
TAG=" rc"
29
31
fi
30
32
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
33
37
pnpm publish --access public --no-git-checks --tag $TAG
34
38
popd > /dev/null
35
39
done
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ pnpm build
11
11
# use absolute urls for better rendering on npm
12
12
sed -i.bak ' s/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md
13
13
14
+ REPO_ROOT=$( pwd)
15
+
14
16
# Release packages
15
17
for PKG in packages/* docs ; do
16
18
if [[ $PKG == " packages/nuxi" ]] ; then
@@ -25,8 +27,10 @@ for PKG in packages/* docs ; do
25
27
pushd $PKG
26
28
TAG=" latest"
27
29
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
30
34
pnpm publish --access public --no-git-checks --tag $TAG
31
35
popd > /dev/null
32
36
done
You can’t perform that action at this time.
0 commit comments