File tree Expand file tree Collapse file tree 3 files changed +59
-51
lines changed Expand file tree Collapse file tree 3 files changed +59
-51
lines changed Original file line number Diff line number Diff line change 11name : Publish NPM Package
22
33on :
4- push :
5- tags :
6- - ' *'
4+ push :
5+ tags :
6+ - ' *'
77
88jobs :
9- package :
10- runs-on : ubuntu-latest
11- name : Publish NPM Package
9+ package :
10+ runs-on : ubuntu-latest
11+ name : Publish NPM Package
1212
13- steps :
14- - name : Cloning repo
15- uses : actions/checkout@v3
13+ steps :
14+ - name : Cloning repo
15+ uses : actions/checkout@v3
1616
17- - uses : actions/setup-node@v4
18- with :
19- node-version : ' 18.x'
20- registry-url : ' https://registry.npmjs.org'
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : ' 18.x'
20+ registry-url : ' https://registry.npmjs.org'
2121
22- - run : npm ci
23- - run : npm run deploy
24- env :
25- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
22+ - run : npm ci
23+ - run : npm run deploy
24+ env :
25+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11name : Unit/Integration Tests
22
33on :
4- pull_request :
5- types :
6- - opened
7- - synchronize
8- - reopened
9- - ready_for_review
10- push :
11- branches :
12- - main
4+ pull_request :
5+ types :
6+ - opened
7+ - synchronize
8+ - reopened
9+ - ready_for_review
10+ push :
11+ branches :
12+ - main
1313jobs :
14- build-and-test :
15- strategy :
16- matrix :
17- node-version : [18.x, 20.x, 22.x]
18- runs-on : ubuntu-latest
19- steps :
20- - uses : actions/checkout@v4
21- with :
22- submodules : true
23- - uses : actions/setup-node@v4
24- with :
25- node-version : ' ${{ matrix.node-version }}'
26- - name : cache node modules
27- uses : actions/cache@v4
28- with :
29- path : ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
30- key : npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
31- restore-keys : |
32- npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
33- npm-
34- - run : npm ci
35- - run : npm test
36- env :
37- CI : true
14+ build-and-test :
15+ strategy :
16+ matrix :
17+ node-version : [18.x, 20.x, 22.x]
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ with :
22+ submodules : true
23+ - uses : actions/setup-node@v4
24+ with :
25+ node-version : ' ${{ matrix.node-version }}'
26+ - name : cache node modules
27+ uses : actions/cache@v4
28+ with :
29+ path : ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
30+ key : npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
31+ restore-keys : |
32+ npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
33+ npm-
34+ - run : npm ci
35+ - run : npm test
36+ env :
37+ CI : true
Original file line number Diff line number Diff line change @@ -5,5 +5,13 @@ module.exports = {
55 tabWidth : 4 ,
66 trailingComma : 'none' ,
77 useTabs : false ,
8- arrowParens : 'avoid'
8+ arrowParens : 'avoid' ,
9+ overrides : [
10+ {
11+ files : [ '*.yml' , '*.yaml' ] ,
12+ options : {
13+ tabWidth : 2
14+ }
15+ }
16+ ]
917} ;
You can’t perform that action at this time.
0 commit comments