File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Node.js Package
2+ on :
3+ pull_request :
4+ branches : [main]
5+ push :
6+ branches : [main]
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ # Setup .npmrc file to publish to GitHub Packages
14+ - uses : actions/setup-node@v1
15+ with :
16+ node-version : " 20.x"
17+ # Defaults to the user or organization that owns the workflow file
18+ # scope: '@octocat'
19+ - run : npm ci
20+ - run : npm run build
21+ - run : npm run coverage
22+ - run : npm run lint
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : Node.js Package
22on :
3- pull_request :
4- branches : [main]
5- push :
6- branches : [main]
3+ release :
4+ types : [published]
75
86jobs :
9- build :
10- runs-on : ubuntu-latest
11- steps :
12- - uses : actions/checkout@v2
13- # Setup .npmrc file to publish to GitHub Packages
14- - uses : actions/setup-node@v1
15- with :
16- node-version : " 20.x"
17- # Defaults to the user or organization that owns the workflow file
18- # scope: '@octocat'
19- - run : npm ci
20- - run : npm run build
21- - run : npm run coverage
22- - run : npm run lint
23-
247 publish-npm :
25- needs : build
26- if : github.ref == 'refs/heads/main'
278 runs-on : ubuntu-latest
289 steps :
2910 - uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments