Skip to content

chore(release): one-shot publish script + npm run release#76

Merged
dawsbot merged 1 commit into
masterfrom
chore/release-script
Jul 7, 2026
Merged

chore(release): one-shot publish script + npm run release#76
dawsbot merged 1 commit into
masterfrom
chore/release-script

Conversation

@dawsbot

@dawsbot dawsbot commented Jul 7, 2026

Copy link
Copy Markdown
Owner

What

Adds a repeatable release flow so cutting a version is one command.

  • scripts/publish.sh — interactively pick major/minor/patch (shows the resulting version for each), then it bumps + commits + tags, pushes the tag to dawsbot, creates the GitHub release with auto-generated notes, builds the VSIX and attaches it to the release, and finally walks through the manual VS Code Marketplace upload (prints the exact .vsix path and opens the publisher page).
  • npm run release — alias for the script.
  • Removes the postversion hook — the script now owns the push/release flow and targets the correct remote/repo explicitly, so a bare npm version just bumps locally instead of misfiring at the upstream repo.

Safety

  • Preflight guards: must be on master, clean tree, and in sync with dawsbot/master before it will run.
  • Targets dawsbot/RelativePath by name (doesn't depend on git upstream or gh default config).
  • Skips the repo's version lifecycle scripts (npm version --ignore-scripts) so there's no double-release.
  • On failure after the bump, prints the exact commands to undo the local commit + tag.

Usage

npm run release      # or: ./scripts/publish.sh

🤖 Generated with Claude Code

Add scripts/publish.sh: interactively picks major/minor/patch, bumps and
tags, pushes to the dawsbot remote, creates the GitHub release with the
built VSIX attached, and walks through the manual Marketplace upload. It
targets the repo explicitly and includes preflight guards plus failure
recovery.

Wire it up as `npm run release`, and drop the old `postversion` hook so a
bare `npm version` just bumps (the script now owns push/release, targeting
the correct remote and repo).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dawsbot dawsbot merged commit fa642e9 into master Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant