-
Notifications
You must be signed in to change notification settings - Fork 2
How to Publish a New Release
Mikalai Silivonik edited this page Sep 6, 2024
·
1 revision
This project supports two types of releases:
- Stable Release: Production-ready versions.
- Alpha Release: Pre-release versions for testing.
The publishing process is automated via GitHub Actions based on specific tag patterns:
- Stable:
vX.Y.Z
(e.g.,v1.0.0
) - Alpha:
vX.Y.Z-alpha.N
(e.g.,v1.0.0-alpha.1
)
-
Update
package.json
Version:
Update the version inpackage.json
(e.g.,"version": "1.0.0"
) or use:npm version [patch | minor | major]
-
Push a PR:
Create a pull request with the version change. After review, merge it into themain
branch. -
Create a Release Tag:
- After the PR is merged, go to the new release page on GitHub.
- Set the tag to match your
package.json
version (e.g.,v1.0.0
) and ensure it is created from themain
branch. - Ensure the target branch is main.
- For major releases, set the previous tag to the previous major version. For minor updates or patches, set it to auto.
- Click Generate release notes and review or edit the notes as needed.
- Click Publish release.
-
Verify:
The package will be published to npm under thelatest
tag. Verify on the npm registry or by installing it locally:npm install <package-name>@latest
-
Create an Alpha Release Tag: No need to update
package.json
for alpha releases — GitHub Actions handles it.- Go to the Releases page.
- Set the tag as
vX.Y.Z-alpha.N
(e.g.,v1.0.0-alpha.1
). - Click Publish Release.
-
Verify:
The package will be published to npm under thealpha
tag. Verify the alpha version on the npm registry:npm install <package-name>@alpha