File tree 7 files changed +22
-21
lines changed
7 files changed +22
-21
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const localConfigs = readdir(__dirname)
7
7
. map ( ( file ) => `./${ file } ` )
8
8
9
9
module . exports = {
10
+ root : true ,
10
11
extends : [
11
12
'@npmcli' ,
12
13
...localConfigs ,
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ jobs:
15
15
- uses : actions/checkout@v3
16
16
- name : Setup git user
17
17
run : |
18
- git config --global user.email "ops+ npm-cli@npmjs.com "
19
- git config --global user.name "npm cli ops bot "
18
+ git config --global user.email "npm team "
19
+ git config --global user.name "ops+robot@npmjs.com "
20
20
- uses : actions/setup-node@v3
21
21
with :
22
22
node-version : 16.x
23
23
- name : Update npm to latest
24
24
run : npm i --prefer-online --no-fund --no-audit -g npm@latest
25
25
- run : npm -v
26
- - run : npm i --ignore-scripts --package-lock
26
+ - run : npm i --ignore-scripts --no-audit --no-fund -- package-lock
27
27
- run : npm audit
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ jobs:
22
22
- uses : actions/checkout@v3
23
23
- name : Setup git user
24
24
run : |
25
- git config --global user.email "ops+ npm-cli@npmjs.com "
26
- git config --global user.name "npm cli ops bot "
25
+ git config --global user.email "npm team "
26
+ git config --global user.name "ops+robot@npmjs.com "
27
27
- uses : actions/setup-node@v3
28
28
with :
29
29
node-version : 16.x
30
30
- name : Update npm to latest
31
31
run : npm i --prefer-online --no-fund --no-audit -g npm@latest
32
32
- run : npm -v
33
- - run : npm i --ignore-scripts
33
+ - run : npm i --ignore-scripts --no-audit --no-fund
34
34
- run : npm run lint
35
35
36
36
test :
59
59
- uses : actions/checkout@v3
60
60
- name : Setup git user
61
61
run : |
62
- git config --global user.email "ops+ npm-cli@npmjs.com "
63
- git config --global user.name "npm cli ops bot "
62
+ git config --global user.email "npm team "
63
+ git config --global user.name "ops+robot@npmjs.com "
64
64
- uses : actions/setup-node@v3
65
65
with :
66
66
node-version : ${{ matrix.node-version }}
82
82
if : ${{ !startsWith(matrix.node-version, '10.') }}
83
83
run : npm i --prefer-online --no-fund --no-audit -g npm@latest
84
84
- run : npm -v
85
- - run : npm i --ignore-scripts
85
+ - run : npm i --ignore-scripts --no-audit --no-fund
86
86
- run : npm test --ignore-scripts
Original file line number Diff line number Diff line change 34
34
- uses : actions/checkout@v3
35
35
- name : Setup git user
36
36
run : |
37
- git config --global user.email "ops+ npm-cli@npmjs.com "
38
- git config --global user.name "npm cli ops bot "
37
+ git config --global user.email "npm team "
38
+ git config --global user.name "ops+robot@npmjs.com "
39
39
- name : Initialize CodeQL
40
40
uses : github/codeql-action/init@v1
41
41
with :
Original file line number Diff line number Diff line change @@ -4,21 +4,20 @@ name: Post Dependabot Actions
4
4
5
5
on : pull_request
6
6
7
- # https://docs.github.com/en/rest/overview/permissions-required -for-github-apps
7
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax -for-github-actions#permissions
8
8
permissions :
9
- actions : write
10
9
contents : write
11
10
12
11
jobs :
13
- Install :
12
+ template-oss-apply :
14
13
runs-on : ubuntu-latest
15
14
if : github.actor == 'dependabot[bot]'
16
15
steps :
17
16
- uses : actions/checkout@v3
18
17
- name : Setup git user
19
18
run : |
20
- git config --global user.email "ops+ npm-cli@npmjs.com "
21
- git config --global user.name "npm cli ops bot "
19
+ git config --global user.email "npm team "
20
+ git config --global user.name "ops+robot@npmjs.com "
22
21
- uses : actions/setup-node@v3
23
22
with :
24
23
node-version : 16.x
36
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
36
run : |
38
37
gh pr checkout ${{ github.event.pull_request.number }}
39
- npm install --ignore-scripts
38
+ npm install --ignore-scripts --no-audit --no-fund
40
39
npm run template-oss-apply
41
40
git add .
42
41
git commit -am "chore: postinstall for dependabot template-oss PR"
43
42
git push
43
+ npm run lint
Original file line number Diff line number Diff line change 20
20
fetch-depth : 0
21
21
- name : Setup git user
22
22
run : |
23
- git config --global user.email "ops+ npm-cli@npmjs.com "
24
- git config --global user.name "npm cli ops bot "
23
+ git config --global user.email "npm team "
24
+ git config --global user.name "ops+robot@npmjs.com "
25
25
- uses : actions/setup-node@v3
26
26
with :
27
27
node-version : 16.x
Original file line number Diff line number Diff line change 42
42
},
43
43
"devDependencies" : {
44
44
"@npmcli/eslint-config" : " ^3.0.1" ,
45
- "@npmcli/template-oss" : " 3.2.0 " ,
45
+ "@npmcli/template-oss" : " 3.4.1 " ,
46
46
"tap" : " ^16.0.1"
47
47
},
48
48
"dependencies" : {
53
53
},
54
54
"templateOSS" : {
55
55
"//@npmcli/template-oss" : " This file is partially managed by @npmcli/template-oss. Edits may be overwritten." ,
56
- "version" : " 3.2.0 "
56
+ "version" : " 3.4.1 "
57
57
}
58
58
}
You can’t perform that action at this time.
0 commit comments