sounisi5011 / package-version-git-tag Goto Github PK
View Code? Open in Web Editor NEWAdd Git tag corresponding to the version field of package.json
License: MIT License
Add Git tag corresponding to the version field of package.json
License: MIT License
There are two types of Git tags: lightweight and annotated.
The lightweight tag is only an alias for commit. Annotated tags, on the other hand, contain information such as the tagger name and date.
Because of this feature, documents on Web state that annotated tags are recommended over lightweight tags.
A lightweight tag is very much like a branch that doesn’t change — it’s just a pointer to a specific commit.
Annotated tags, however, are stored as full objects in the Git database. They’re checksummed; contain the tagger name, email, and date; have a tagging message; and can be signed and verified with GNU Privacy Guard (GPG). It’s generally recommended that you create annotated tags so you can have all this information
─ https://git-scm.com/book/en/v2/Git-Basics-Tagging#_creating_tags
It is useful to have the feature to detect duplicate tags and replace them with annotated tags if they are lightweight.
Here is the answer to help you detect the type of tag:
git for-each-ref refs/tags
This CLI tool has no help document to browse on the console.
If we follow the standard other commands and use the --help
option, the documentation will not be displayed, and Git tags will be added silently.
Drop support for Node.js 10 and 12 - resolved #186
Migrate from AVA to Vitest - resolved #200
Update or migrate cac
package - resolved #211
Move from CommonJS to ESM - resolved #227
Some dependencies moved to pure ESM.
However, this CLI is not yet a pure ESM and cannot update these dependencies.
The primary use of this CLI is in the release process, so there is no need to support the old Node.js.
Therefore, it should be possible migrate to a pure ESM.
Remove release
scripts and use GitHub Actions for automatic releases
Package is-git-status-clean
in the dependencies depends on package trim-newlines@^2.0.0
with known vulnerabilities.
However, this package is only used for manual releases.
If releases are automated, this dependency is not needed.
The release process should be automated, not only to remove vulnerable dependencies, but also to prevent human error.
Use the prefix [command]
when executing on GitHub Actions
This prefix allows highlighting of the command executed within the output of GitHub Actions.
see https://github.com/actions/toolkit/blob/a91ee0b497d90e7352290ea416f4403e7792aacf/packages/exec/src/toolrunner.ts#L47
This command is very simple, but I may still want to know what happens.
It is useful to have the --dry-run
option.
There may be multiple remote repositories configured in Git.
The name of the remote repository is often "origin", but this is not the default built in Git.
If remote repositories other than "origin" are set, the option to select them is required.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | npm-run-all |
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
del-cli
, npm-run-all
)execa
, vitest
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@sindresorhus/slugify
, @types/semver
, execa
, semver
, ts-node
, vitest
)lefthook
, prettier
, sort-package-json
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
, eslint
, eslint-config-prettier
, eslint-config-standard
, eslint-plugin-import
, eslint-plugin-n
, eslint-plugin-promise
, eslint-plugin-vitest
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
, eslint
, eslint-config-prettier
, eslint-plugin-n
, eslint-plugin-prettier
, eslint-plugin-simple-import-sort
).github/workflows/check-if-changelog-is-updated.yaml
actions/checkout v3
.github/workflows/ci.yaml
actions/checkout v3
actions/github-script v6
actions/checkout v3
actions/setup-node v3
actions/cache v3
actions/checkout v3
actions/setup-node v3
actions/cache v3
.github/workflows/pr-auto-approve.yaml
hmarr/auto-approve-action v3
.github/workflows/update-license-year.yaml
actions/checkout v3
FantasticFiasco/action-update-license-year v2
package.json
command-join ^3.0.0
cross-spawn ^7.0.2
mri ^1.2.0
which-pm ^2.0.0
which-pm-runs ^1.1.0
@go-task/cli 3.27.1
@sindresorhus/slugify 2.2.0
@sounisi5011/readme-generator 0.0.2
@tsconfig/node14 1.0.3
@types/cross-spawn 6.0.2
@types/mock-fs 4.13.1
@types/node 14.18.37
@types/semver 7.3.13
@types/which-pm-runs 1.0.0
@typescript-eslint/eslint-plugin 5.54.1
@typescript-eslint/parser 5.54.1
can-npm-publish 1.3.6
del-cli 5.0.0
eslint 8.36.0
eslint-config-prettier 8.7.0
eslint-config-standard 17.0.0
eslint-plugin-import 2.27.5
eslint-plugin-n 15.6.1
eslint-plugin-prettier 4.2.1
eslint-plugin-promise 6.1.1
eslint-plugin-simple-import-sort 10.0.0
eslint-plugin-vitest 0.0.54
execa 7.1.1
git-branch-is 4.0.0
is-git-status-clean 1.0.0
is-promise 4.0.0
lefthook 1.3.3
mock-fs 5.2.0
node-git-server 1.0.0
npm-run-all 4.1.5
prettier 2.8.4
prettier-package-json 2.8.0
semver 7.3.8
sort-package-json 2.4.1
ts-node 10.9.1
typescript 4.9.5
vite 4.1.4
vitest 0.29.2
vitest-mock-process 1.0.4
node ^14.14.0 || 16.x || >=18.x
pnpm 7.30.5
Assuming standard GitHub, the format of the version tag is v{version}
.
However, some people may want to change this format.
Perhaps it is an edge case, but better than the current situation where there is no choice.
I'm using Node.js 15.8.0
and the installation fails with:
error [email protected]: The engine "node" is incompatible with this module. Expected version "10.x || 12.x || 14.x". Got "15.8.0"
error Found incompatible module.
I can hardly imagine that a new Node.js version could break the functionality of this package. Is it really necessary to limit the maximum Node.js version?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.