1.9 KiB
Release workflow
Update changelog
- CHANGELOG.md in the repository root
- The changelog.txt file in mod directories
Pull requests will usually have suggestions for changelog entries.
Packages
Note
You will need commit access to the repository as well publish access to the @clusterio org on npm to do this.
-
Ensure you are on the latest version of master branch with no untracked files
git switch master git pull --ff-only upstream master git status -
Bump the version in the
package.jsonfilessed -i 's/2\.0\.0-alpha\.XX/2\.0\.0-alpha\.YY/' {packages,plugins}/*/package.json -
Tag and push the release to github
git add -p git commit -m v2.0.0-alpha.XX git tag v2.0.0-alpha.XX -
Perform a clean install and publish the packages.
pnpm clean pnpm -r --filter='./{plugins,packages}/*' publish
Plugins
- Bump the version in the
package.jsonfile - Run
pnpm installin the repository root - Run
pnpm adduserto authenticate - Run
pnpm publishin the plugin/package directory
Before confirming the publish, ensure the packed size is approximately the same size as the last version (or within the expected size)
After publishing, test creating and installing the plugin on a fresh install.
Lua mods
To publish lua mods like clusterio_lib, start by building from source:
pnpm run build-mod
or download the latest artifacts from the CI. When uploading the mods to the mod portal, make sure the latest version is the last version uploaded, as the game/mod portal/ingame updater isn't consistent in how it figures out the "latest version"
Release notes
Release notes are expected to be published alongside new releases. We use the github releases system as well as posting in the #announcements channel on the discord. Major releases may warrant a ping.