Skip to content

Commit c7c0cd9

Browse files
committed
chore($release): hoist npm release
1 parent 9d42057 commit c7c0cd9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/release.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,16 @@ select VERSION in patch minor major "Specific Version"
2727
NEW_VERSION=$(node -p "require('./package.json').version")
2828
echo Releasing ${NEW_VERSION} ...
2929

30+
# npm release
31+
npm publish
32+
echo "✅ released to npm"
33+
3034
# github release
31-
npm run prepublishOnly
3235
git add CHANGELOG.md
3336
git commit -m "chore: changelog"
3437
git push
3538
git push origin refs/tags/v${NEW_VERSION}
3639
echo "✅ released to Github"
37-
38-
# npm release
39-
npm publish
40-
echo "✅ released to npm"
4140
else
4241
echo Cancelled
4342
fi

0 commit comments

Comments
 (0)