Skip to content
Written for developers. Just using FluxPlugs? Go to the user guide.

CI and versioning

CI runs the application checks on Windows and Ubuntu. It runs on pull requests and before every beta release, but not on push: to check a pushed commit, start CI from the Actions tab. The workflow installs pnpm, Node, Rust, and native dependencies, regenerates contracts, and verifies committed generated types before testing.

Formatting, lint, typecheck, unit tests, builds, architecture checks, documentation examples, and Electron fixtures protect the public and native boundaries. Rust formatting, Clippy, and tests cover injector-core and the Tauri package. After the build, CI also fails if any plugin’s committed fluxplug.json integrity hash differs from the rebuilt one.

The external-plugin suite demonstrates that independently packaged plugins work without runtime-private imports.

A separate job installs dependencies using docs/pnpm-lock.yaml, builds the static site, and checks internal links, anchors, images, and article reachability. Root dependency installation alone does not install Astro.

The production URL is https://fluxer.plus. The CI job only builds and checks the site. A separate workflow, deploy.yml, deploys it after the same build and link check: on pushes to main that touch docs/ or the bundled plugins’ manifests and READMEs, on a repository_dispatch from the community plugin repository, or by hand from the Actions tab.

Dependabot (.github/dependabot.yml) opens one grouped pull request a week each for npm, the docs, Cargo and GitHub Actions. It skips TypeScript 6.1 and later, which typescript-eslint doesn’t support yet, and Electron 45 and later, because the fixture has to match the Electron major Fluxer’s shell ships.

dependabot-auto-merge.yml turns on auto-merge for patch and minor updates. A ruleset on main requires the CI jobs (commits, docs, and test on both systems), so GitHub squash-merges the pull request only once they pass. Repository admins bypass the ruleset and can still push to main. A pull request with a major update, or with failing checks, stays open for review. Merges made by the workflow don’t trigger deploy.yml, so a docs dependency update reaches the site with the next push to main.

The current product version is 0.5.0-beta.2. Keep root and package metadata, Cargo and Tauri versions, the runtime version, starter dependency pins, the version on the website’s landing hero, the README, the docs that state the version (this one included) and the bug report form’s placeholder consistent; scripts/check-version.mjs lists them all. The injector’s title bar reads its version from apps/injector/package.json.

Independently versioned plugin releases and fixture versions stay independent. SDK API version 2 and manifest schema version 1 remain unchanged by the beta label.

pnpm check:version (part of pnpm check and CI) fails if any of those places disagrees with the root package.json.

After a version update, rebuild runtime/catalog artifacts and verify package and fixture workflows. Beta installers exist; automatic updates, code signing, and registry publication don’t, so don’t imply them.

The Beta release workflow (release.yml) runs only when started by hand from the Actions tab. Releases go to the separate, private FluxerDevs/FluxPlugsReleases repository, which keeps the installers apart from the code and its history. The workflow:

  1. Runs the full CI workflow as a gate, unless CI already passed on the same commit, either on its own or inside an earlier release run. Turn on rerun_ci to run it anyway. The run’s summary says which happened.
  2. Checks the version with check:version. When create_release is on, it stops if the releases repository already has a published release for that version.
  3. Builds the injector with tauri build on Windows (NSIS installer) and Ubuntu 22.04 (deb, rpm, and AppImage). The Tauri build command also builds the runtime, catalog, and UI.
  4. Writes SHA256SUMS.txt and the release notes, which include the Windows SmartScreen note and a link to the community for problems.
  5. Sends each installer to VirusTotal without waiting for the scans (scripts/virustotal-submit.mjs), and adds a table linking each file’s report, with a note about false positives. A file that couldn’t be sent is listed as Not sent; this step never stops the release.
  6. Creates a draft pre-release named after the version in the releases repository. A re-run replaces the draft. The tag is created on that repository’s default branch when the draft is published. The notes link CHANGELOG.md rather than generating a list, so move the Unreleased entries under the new version before releasing.

It needs two repository secrets:

  • RELEASES_REPO_TOKEN: a fine-grained token with Contents read and write on FluxerDevs/FluxPlugsReleases only. The workflow stops early without it when create_release is on.
  • VIRUSTOTAL_API_KEY: optional. A free key is enough: the script waits 15.5 seconds between requests to stay within its limit of four a minute. Without it, the notes say the files weren’t sent.

Turn off create_release for a dry run: the installers are then only kept as workflow artifacts for 14 days. The builds are unsigned, and Windows uses NSIS because the MSI bundler rejects pre-release versions. The installer’s sidebar and header images (nsis-sidebar.bmp, nsis-header.bmp in the injector’s icons folder) use the docs’ logo and colours.

CI and the release builds cache Rust compilation with rust-cache, so runs after the first one on a branch spend less time compiling.

To release a beta:

  1. Bump the version in every place listed above, then run pnpm check:version. Turn the Unreleased section of CHANGELOG.md into the release’s section.
  2. Rebuild, run the checks, and commit.
  3. Start Beta release from the Actions tab on that commit.
  4. In FluxerDevs/FluxPlugsReleases, download the draft’s files, check them against SHA256SUMS.txt, and install and scan with each package on Windows and Linux. Open the VirusTotal links to read the results.
  5. Add the changes to the draft’s notes, then publish it. Publishing creates the tag. The download guide links to the releases page, so it needs no change.

FluxPlugs is an independent project, not affiliated with or endorsed by Fluxer.