Skip to content

Commit 6368690

Browse files
author
Deepak Kumar
committed
Update release script: delegate publishing to GitHub Actions and refine messaging
1 parent a193fd1 commit 6368690

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bin/release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ set -e
44
VERSION=$(node -p "require('./package.json').version")
55
TAG="v${VERSION}"
66

7-
echo "Releasing ${TAG}..."
7+
echo "Preparing release ${TAG}..."
88

99
# Ensure working tree is clean (except for untracked build artifacts)
1010
if ! git diff --quiet || ! git diff --cached --quiet; then
1111
echo "ERROR: Working tree has uncommitted changes. Commit or stash them first."
1212
exit 1
1313
fi
1414

15-
# Publish to NPM first — this runs prepublishOnly (lint + test + build)
15+
# Run prepublishOnly (lint + test + build) — actual publishing is done by GitHub Actions on tag push.
1616
# If this fails, nothing is tagged or pushed.
17-
npm publish
17+
npm run prepublishOnly
1818

1919
# Force-add the build artifacts generated by prepublishOnly
2020
git add -f bundles/ esm6/
@@ -30,4 +30,4 @@ git rm -r --cached bundles/ esm6/
3030
git commit -m "chore: untrack build artifacts after ${TAG}"
3131
git push
3232

33-
echo "Released ${TAG} successfully."
33+
echo "Tagged and pushed ${TAG}. GitHub Actions will publish to NPM."

0 commit comments

Comments
 (0)