File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
node-version : ${{ matrix.node-version }}
23
23
- run : npm install
24
- - run : CLANG_FORMAT_START=refs/remotes/origin/master npm run lint
24
+ - run : CLANG_FORMAT_START=refs/remotes/origin/main npm run lint
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ These are the steps to follow to create a new release:
23
23
* Open an issue in the ** node-addon-api** repo documenting the intent to create a
24
24
new release. Give people some time to comment or suggest PRs that should land first.
25
25
26
- * Validate all tests pass by running npm test on master .
26
+ * Validate all tests pass by running ` npm test ` on the ` main ` branch .
27
27
28
28
* Update the version in ** package.json** appropriately.
29
29
30
- * Update the [ README.md] ( https://github.com/nodejs/node-addon-api/blob/master /README.md )
30
+ * Update the [ README.md] ( https://github.com/nodejs/node-addon-api/blob/main /README.md )
31
31
to show the new version as the latest.
32
32
33
33
* Generate the changelog for the new version using ** changelog maker** tool. From
@@ -36,12 +36,12 @@ the route folder of the repo launch the following command:
36
36
```bash
37
37
> changelog-maker
38
38
```
39
- * Use the output generated by ** changelog maker** to update the [ CHANGELOG.md] ( https://github.com/nodejs/node-addon-api/blob/master /CHANGELOG.md )
39
+ * Use the output generated by ** changelog maker** to update the [ CHANGELOG.md] ( https://github.com/nodejs/node-addon-api/blob/main /CHANGELOG.md )
40
40
following the style used in publishing the previous release.
41
41
42
42
* Add any new contributors to the "contributors" section in the package.json
43
43
44
- * Validate all tests pass by running npm test on master .
44
+ * Validate all tests pass by running ` npm test ` on the ` main ` branch .
45
45
46
46
* Use ** [ CI] ( https://ci.nodejs.org/view/x%20-%20Abi%20stable%20module%20API/job/node-test-node-addon-api-new/ ) **
47
47
to validate tests pass (note there are still some issues on SmartOS and
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const spawn = require('child_process').spawnSync;
4
4
const path = require ( 'path' ) ;
5
5
6
6
const filesToCheck = [ '*.h' , '*.cc' ] ;
7
- const CLANG_FORMAT_START = process . env . CLANG_FORMAT_START || 'master ' ;
7
+ const CLANG_FORMAT_START = process . env . CLANG_FORMAT_START || 'main ' ;
8
8
9
9
function main ( args ) {
10
10
let clangFormatPath = path . dirname ( require . resolve ( 'clang-format' ) ) ;
@@ -35,9 +35,9 @@ function main(args) {
35
35
console . error ( `
36
36
ERROR: please run ${ fixCmd } to format changes in your commit
37
37
Note that when running the command locally, please keep your local
38
- master branch and working branch up to date with nodejs/node-addon-api
38
+ main branch and working branch up to date with nodejs/node-addon-api
39
39
to exclude un-related complains.
40
- Or you can run "env CLANG_FORMAT_START=upstream/master ${ fixCmd } ".` ) ;
40
+ Or you can run "env CLANG_FORMAT_START=upstream/main ${ fixCmd } ".` ) ;
41
41
return 1 ;
42
42
}
43
43
}
You can’t perform that action at this time.
0 commit comments