File tree Expand file tree Collapse file tree 2 files changed +16
-85
lines changed Expand file tree Collapse file tree 2 files changed +16
-85
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Test & Build
2-
1+ name : build
32on :
3+ release :
4+ types : [created]
45 push :
5- branches : ' *'
6- pull_request :
7- branches : ' *'
8-
6+ branches :
7+ - ' **'
98jobs :
10- test-build :
11- name : Run tests and build project
9+ build :
1210 runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
1313 steps :
1414 - uses : actions/checkout@v4
1515 - uses : actions/setup-node@v4
1616 with :
17- node-version : 18
17+ node-version : ' 20.x'
18+ registry-url : ' https://registry.npmjs.org'
19+ cache : npm
1820 - run : npm ci
21+ - run : npm run test:coverage
1922 - run : npm run build
23+ - run : npm publish
24+ if : github.event_name == 'release' && github.event.action == 'created'
25+ env :
26+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments