This project provides shared commodities for developing nRF Connect for Desktop apps and their launcher:
- React components
- Build scripts
- Configurations
- Test facilities
Whenever something is changed in pc-nrfconnect-shared, an entry should be added
to Changelog.md
.
If there is no latest entry there yet, and you do not intend to release the
change as a new version right ahead, add a new section with the heading
## Unreleased
at the top.
To release, two files must be up-to-date:
package.json
contain the correct version number (one more than the last release).Changelog.md
must contain an entry, with that version number and today's date.
By running npm run prepare-shared-release
you update the version in
package.json
and in Changelog.md
a potential ## Unreleased
heading is
updated to the right version and today‘s date.
When those conditions are met, a new release of shared will automatically be created when the according PR is merged into main.
If you need to unpublish a specific version from npm (e.g., due to a critical bug), you can use the "Unpublish npm version" GitHub Action:
- Go to the Unpublish npm version GitHub Action and run the workflow.
- Enter the version to unpublish (e.g.,
221.0.0
)
Warning: Unpublishing a version from npm is irreversible and should only be done in exceptional circumstances (e.g., security vulnerabilities, critical bugs).