Skip to content

ci: release to marketplace and open vsx with changesets - #52

Merged
cypherkunp merged 3 commits into
mainfrom
ci/changesets-release
Nov 23, 2026
Merged

cypherkunp merged 3 commits into
mainfrom
ci/changesets-release

Conversation

@cypherkunp

@cypherkunp cypherkunp commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Publishes Packman under the new ID startfrom.packman, using Changesets for versioning and a GitHub Actions pipeline that ships to the VS Code Marketplace and Open VSX. The first release is 1.1.0.

What changes

  • publisher is now startfrom and the version is 1.1.0. CHANGELOG.md gets a 1.1.0 entry that announces the new ID and points to the 0.1.0 notes. private: true stops anyone from running npm publish on it by accident.
  • Changesets (@changesets/cli v3) with privatePackages.version turned on, plus a version-packages script that also refreshes the lockfile.
  • CI (ci.yml, on PRs and pushes to main): typecheck, tests, packages the VSIX and uploads it as an artifact.
  • Release (release.yml, on pushes to main and manual dispatch):
    • when changesets are pending, it opens or updates a chore: version packages PR;
    • when none are pending and v<version> isn't tagged, it packages the VSIX, runs vsce publish and then ovsx publish (both with --skip-duplicate), tags v<version> and creates a GitHub release with that version's changelog section and the VSIX attached.
    • It decides whether to publish by checking for the tag itself instead of parsing changeset publish output, because v3 changed that output format.
  • Removes the post-commit version-bump hook (scripts/bump-version.mjs, its test and .pre-commit-config.yaml), since Changesets now owns the version.
  • .vscodeignore now also excludes .changeset/, .impeccable/, .nvmrc and *.vsix. Adds .nvmrc (Node 24) and allowScripts for the npm 11 install-script gate.
  • Adds docs/releasing.md (one-time setup and the release flow) and a Releases rule in AGENTS.md.

Before merging

Merging this publishes 1.1.0 right away. First:

  • Add the VSCE_PAT secret (Azure DevOps PAT, scope Marketplace → Manage) for the startfrom publisher
  • Create the startfrom namespace on Open VSX and add the OVSX_PAT secret
  • Settings → Actions → General: turn on "Allow GitHub Actions to create and approve pull requests"

Verified locally

  • npm run check: 177 tests passed
  • vsce package builds a 91 KB VSIX
  • Simulated a minor changeset: changeset version bumped the version, wrote the changelog, and the release-notes awk pulled out the right section, including the 1.1.0 one

🤖 Generated with Claude Code

cypherkunp and others added 3 commits November 23, 2026 14:43
Publish as startfrom.packman. Changesets replaces the post-commit
version bump hook, and the Release workflow opens version PRs and
publishes, tags and creates GitHub releases on merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cypherkunp
cypherkunp merged commit 8bbcf4c into main Nov 23, 2026
1 check passed
@cypherkunp
cypherkunp deleted the ci/changesets-release branch November 23, 2026 15:15
cypherkunp added a commit that referenced this pull request Nov 23, 2026
The first Release run after #52 merged failed at **Publish to the VS
Code Marketplace** because no `VSCE_PAT` was set
([run](https://github.com/startfromco/packman/actions/runs/45203234362)).
Nothing was published or tagged. This PR switches Marketplace publishing
to trusted publishing (GitHub Actions OIDC), so no token has to be
stored.

## Changes

- **`release.yml`**: adds `id-token: write` and runs `vsce publish
--oidc`. `VSCE_PAT` is no longer used.
- **`package.json`**: `publisher` is now `StartFrom`, matching the
Marketplace publisher ID exactly. `repository`, `bugs` and `homepage`
now point at `startfromco/packman`.
- **`docs/releasing.md`**: replaces the PAT steps with the Trusted
Publishing policy values and updates the ID to `StartFrom.packman`.
`CHANGELOG.md`'s 1.1.0 entry now uses that ID too.

## Before merging

Merging re-runs Release, which publishes **1.1.0** because `v1.1.0`
isn't tagged yet.

- [ ] Marketplace → StartFrom → Trusted Publishing: create a policy with
owner `startfromco`, repository `packman`, workflow `release.yml` and no
environment
- [ ] Open VSX: create the `StartFrom` namespace and add the `OVSX_PAT`
secret. Without it the Open VSX step fails after the Marketplace publish
succeeds; re-running is safe thanks to `--skip-duplicate`.
- [ ] Settings → Actions → General: turn on "Allow GitHub Actions to
create and approve pull requests"

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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