Closed MCatherine1994 closed 1 year ago
Example how to get latest GitHub version tag not is unannotated: https://stackoverflow.com/questions/57380839/npm-publish-with-git-information-instead-of-version-from-package-json. The release-please created unannotated tags, but the npm version from-git option can only get annotated tags, so we can't use the "from-git" option, instead we run a command the get the latest tag and use that
npm version from-git
An example from a previous project: https://github.com/BCDevOps/nrdk/blob/master/.github/workflows/publish.yml GitHub Action npm publish doc: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
Example how to get latest GitHub version tag not is unannotated: https://stackoverflow.com/questions/57380839/npm-publish-with-git-information-instead-of-version-from-package-json. The release-please created unannotated tags, but the
npm version from-git
option can only get annotated tags, so we can't use the "from-git" option, instead we run a command the get the latest tag and use thatAn example from a previous project: https://github.com/BCDevOps/nrdk/blob/master/.github/workflows/publish.yml GitHub Action npm publish doc: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages