Move package release to workflow docs

This commit is contained in:
Cooldude2606 committed 2025-02-28 23:34:24 +00:00
1 parent febdbd4fd6
commit 2c44890100
2 files changed
+43 -43

No files matched your search

+38 -2
View File
@@ -7,7 +7,41 @@
Pull requests will usually have suggestions for changelog entries.
## Plugins and packages
## Packages
> [!NOTE]
> You will need commit access to the repository as well publish access to the @clusterio org on npm to do this.
1. Ensure you are on the latest version of master branch with no untracked files
```sh
git switch master
git pull --ff-only upstream master
git status
```
2. Bump the version in the `package.json` files
```sh
sed -i 's/2\.0\.0-alpha\.XX/2\.0\.0-alpha\.YY/' {packages,plugins}/*/package.json
````
3. Tag and push the release to github
```sh
git add -p
git commit -m v2.0.0-alpha.XX
git tag v2.0.0-alpha.XX
```
4. Perform a clean install and publish the packages.
```sh
pnpm clean
pnpm -r --filter='./{plugins,packages}/*' publish
```
## Plugins
1. Bump the version in the `package.json` file
2. Run `pnpm install` in the repository root
@@ -22,7 +56,9 @@ After publishing, test creating and installing the plugin on a fresh install.
To publish lua mods like clusterio_lib, start by building from source:
pnpm run build-mod
```sh
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"