@node-core/utils 5.16.0 → 5.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -10
- package/package.json +7 -7
package/README.md
CHANGED
@@ -89,14 +89,6 @@ After the token is generated, create an rc file with the following content:
|
|
89
89
|
Note: you could use `ncu-config` to configure these variables, but it's not
|
90
90
|
recommended to leave your tokens in your command line history.
|
91
91
|
|
92
|
-
If you have `gpg` installed and setup on your local machine, it is recommended
|
93
|
-
to store an encrypted version of this file:
|
94
|
-
|
95
|
-
```console
|
96
|
-
$ gpg --default-recipient-self --encrypt ~/.ncurc
|
97
|
-
$ rm ~/.ncurc
|
98
|
-
```
|
99
|
-
|
100
92
|
### Setting up Jenkins credentials
|
101
93
|
|
102
94
|
The `git-node` and `ncu-ci` commands need to query the Node.js Jenkins API for
|
@@ -124,14 +116,30 @@ To obtain the Jenkins API token
|
|
124
116
|
}
|
125
117
|
```
|
126
118
|
|
119
|
+
### Protecting your credentials
|
127
120
|
|
128
|
-
|
121
|
+
If you have `gpg` installed and setup on your local machine, it is strongly recommended
|
122
|
+
to store an encrypted version of this file:
|
123
|
+
|
124
|
+
```console
|
125
|
+
$ gpg --default-recipient-self --encrypt ~/.ncurc
|
126
|
+
$ rm ~/.ncurc
|
127
|
+
```
|
128
|
+
|
129
|
+
The credentials are now encrypted in `~/.ncurc.gpg` and everytime it's needed,
|
130
|
+
node-core-utils will invoke `gpg` that may ask you to decrypt it using
|
131
|
+
your default key via pinentry.
|
129
132
|
|
130
133
|
Put the following entries into your
|
131
134
|
[global `gitignore` file](https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreexcludesFile)
|
132
|
-
(`$XDG_CONFIG_HOME/git/ignore` or a file specified by `core.excludesFile`):
|
135
|
+
(`$XDG_CONFIG_HOME/git/ignore` or a file specified by `core.excludesFile`). For example:
|
136
|
+
|
137
|
+
```console
|
138
|
+
$ git config --global core.excludesfile ~/.gitignore_global
|
139
|
+
```
|
133
140
|
|
134
141
|
```
|
142
|
+
# In ~/.gitignore_global
|
135
143
|
# node-core-utils configuration file
|
136
144
|
.ncurc
|
137
145
|
.ncurc.gpg
|
package/package.json
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@node-core/utils",
|
3
|
-
"version": "5.16.
|
3
|
+
"version": "5.16.1",
|
4
4
|
"description": "Utilities for Node.js core collaborators",
|
5
5
|
"type": "module",
|
6
6
|
"engines": {
|
7
7
|
"node": "^18.18.0 || >=20.0.0"
|
8
8
|
},
|
9
9
|
"bin": {
|
10
|
-
"get-metadata": "
|
11
|
-
"git-node": "
|
12
|
-
"ncu-config": "
|
13
|
-
"ncu-team": "
|
14
|
-
"ncu-ci": "
|
10
|
+
"get-metadata": "bin/get-metadata.js",
|
11
|
+
"git-node": "bin/git-node.js",
|
12
|
+
"ncu-config": "bin/ncu-config.js",
|
13
|
+
"ncu-team": "bin/ncu-team.js",
|
14
|
+
"ncu-ci": "bin/ncu-ci.js"
|
15
15
|
},
|
16
16
|
"scripts": {
|
17
17
|
"test": "npm run test-unit && npm run lint",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"author": "Joyee Cheung <joyeec9h3@gmail.com>",
|
26
26
|
"repository": {
|
27
27
|
"type": "git",
|
28
|
-
"url": "git+ssh://git@github.com
|
28
|
+
"url": "git+ssh://git@github.com/nodejs/node-core-utils.git"
|
29
29
|
},
|
30
30
|
"files": [
|
31
31
|
"lib/",
|