You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm's package.json requires a version parameter when publishing and so most npm projects include the version number in the project's package.json source code. However, most package managers don't require this and some go as far as to discourage it (see: composer.json) because it creates a relationship between source code and version, which should ideally be owned by the package manager.
A standard package-management workflow is possible using native npm features. The version command will set the version in package.json without committing using the no-git-tag-version argument.
dev:~$ npm --no-git-tag-version version 1.0.0
This composite GitHub action should:
Document why it isn't necessary to include a version in package.json
The workflow is very simple but uncommon in the npm world (I have not found an example) so the value of this project is more in educating people to this workflow, the functionality is very simple.
The text was updated successfully, but these errors were encountered:
npm's package.json requires a
version
parameter when publishing and so most npm projects include the version number in the project'spackage.json
source code. However, most package managers don't require this and some go as far as to discourage it (see: composer.json) because it creates a relationship between source code and version, which should ideally be owned by the package manager.A standard package-management workflow is possible using native
npm
features. Theversion
command will set the version inpackage.json
without committing using theno-git-tag-version
argument.This composite GitHub action should:
version
inpackage.json
battila7/get-version-action
version
cli command (without tagging)The workflow is very simple but uncommon in the npm world (I have not found an example) so the value of this project is more in educating people to this workflow, the functionality is very simple.
The text was updated successfully, but these errors were encountered: