Skip to content

Releases

Releases are automatic. Every merge to master can produce one, and each release is published to the VS Code Marketplace and, for the facet command, to npm.

The extension is marked Preview: it works and is used daily, but the file format and the views can still change between releases.

The facet command is published on npm as @foreachexists/facet, with the same version.

Each release has its notes, generated from the commits, on the GitLab releases page.

Every merge to master runs semantic-release, which reads the Conventional Commits since the last vX.Y.Z tag:

Commits since the last release Release
a fix, a perf or a revert patch (0.9.0 to 0.9.1)
a feat minor (0.9.1 to 0.10.0)
only other types (docs, chore, test, …) none

It tags the commit vX.Y.Z and writes the GitLab release with the notes. The pipeline of that tag builds the extension with the version, marked Preview, and publishes it to the VS Code Marketplace; it bundles the facet command with the same version and publishes it to npm.

  • The tag is the version. The package.json files say 0.0.0; a local npm run package builds a 0.0.0 development package.
  • No breaking-change markers in Preview. A feat!: commit or a BREAKING CHANGE: footer would make semantic-release release a new major version, so commits are not marked that way while the extension is in Preview.
  • Packaging refuses what the Marketplace would refuse: an SVG icon, and README images that are relative, SVG or not https.

The tag pipeline (job publish-extension) needs protected v* tags and these masked, protected CI/CD variables:

  • GITLAB_TOKEN: a project access token (Maintainer, scopes api and write_repository), so the tag semantic-release pushes starts a pipeline.
  • VSCE_PAT: an Azure DevOps personal access token scoped to one organization, with “Marketplace (Manage)”, from an account that is a member of the foreachexists publisher. It expires: renew it in time.
  • OVSX_PAT (optional, not set up yet): an Open VSX access token of an account that may publish to the foreachexists namespace. When it is set, the job also publishes to Open VSX and creates the namespace if it does not exist yet.
  • NPM_TOKEN: an npm granular access token with publish rights on the @foreachexists scope. It expires: renew it in time. (npm trusted publishing would need no secret, but GitLab gives this project no OIDC identity tokens because its path was used by an earlier project.)

A store whose token is not set is skipped with a warning; the job fails if none is set or a store refuses the package. A failed job can be retried: a version a store already has counts as published.

The listing’s images point at files on master in the repository, so they show only while the repository is public. The logo masters are in docs/logo (facet.svg, and facet-light.svg for light backgrounds); after changing facet.svg, run npm run icon to render the Marketplace icon packages/vscode/media/icon.png.