File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44VERSION=$( node -p " require('./package.json').version" )
55TAG=" v${VERSION} "
66
7- echo " Releasing ${TAG} ..."
7+ echo " Preparing release ${TAG} ..."
88
99# Ensure working tree is clean (except for untracked build artifacts)
1010if ! git diff --quiet || ! git diff --cached --quiet; then
1111 echo " ERROR: Working tree has uncommitted changes. Commit or stash them first."
1212 exit 1
1313fi
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
2020git add -f bundles/ esm6/
@@ -30,4 +30,4 @@ git rm -r --cached bundles/ esm6/
3030git commit -m " chore: untrack build artifacts after ${TAG} "
3131git push
3232
33- echo " Released ${TAG} successfully ."
33+ echo " Tagged and pushed ${TAG} . GitHub Actions will publish to NPM ."
You can’t perform that action at this time.
0 commit comments