File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Publish to npm
33on :
44 push :
55 tags :
6- - ' codetime@ *'
6+ - ' v *'
77 workflow_dispatch :
88 inputs :
99 dist_tag :
@@ -24,14 +24,14 @@ jobs:
2424 fetch-depth : 0
2525 fetch-tags : true
2626
27- # On manual dispatch, jump to the latest `codetime@ *` tag so we always
27+ # On manual dispatch, jump to the latest `v *` tag so we always
2828 # publish the most recent release rather than whatever is on the branch.
2929 - name : Checkout latest tag (manual dispatch)
3030 if : github.event_name == 'workflow_dispatch'
3131 run : |
32- latest_tag=$(git tag --list 'codetime@ *' --sort=-v:refname | head -n 1)
32+ latest_tag=$(git tag --list 'v *' --sort=-v:refname | head -n 1)
3333 if [ -z "$latest_tag" ]; then
34- echo "no codetime@ * tag found" >&2
34+ echo "no v * tag found" >&2
3535 exit 1
3636 fi
3737 echo "checking out $latest_tag"
Original file line number Diff line number Diff line change 6060
6161# ── precondition: tag must not already exist on the remote ──
6262VERSION=" $( node -p " require('$CLI_DIR /package.json').version" ) "
63- TAG=" codetime@ ${VERSION} "
63+ TAG=" v ${VERSION} "
6464log " release version: $VERSION (dist-tag: $DIST_TAG )"
6565
6666if git rev-parse -q --verify " refs/tags/$TAG " > /dev/null; then
9595
9696# ── tag + push ──
9797log " tagging $TAG "
98- git tag -a " $TAG " -m " codetime@ ${VERSION} "
98+ git tag -a " $TAG " -m " v ${VERSION} "
9999git push origin main --follow-tags
100100
101101log " done. published codetime@${VERSION} "
You can’t perform that action at this time.
0 commit comments