File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 - uses : actions/setup-node@v5.0.0
1717 with :
1818 node-version-file : " .node-version"
19- - name : Build and test coverage
19+ - name : Install dependencies, run test coverage
2020 run : |
2121 npm ci
2222 npm install c8@10.1.3
Original file line number Diff line number Diff line change 1- name : CI
1+ name : Pull Request test
22on :
33 workflow_call :
44 pull_request :
1616 - uses : actions/setup-node@v5.0.0
1717 with :
1818 node-version-file : " .node-version"
19- - name : Build and test
19+ - name : Install dependencies and test
2020 run : |
2121 npm ci
2222 npm run test
Original file line number Diff line number Diff line change 1- name : Release
1+ name : Release to GitHub
22on :
33 push :
44 tags :
55 - " v*"
66jobs :
7- test :
8- uses : ./.github/workflows/ci.yml
97 release :
108 needs : test
119 permissions :
1816 - uses : actions/setup-node@v5.0.0
1917 with :
2018 node-version-file : " .node-version"
21- - name : Build
19+ - name : Install dependencies amd build
2220 run : |
2321 npm ci
2422 npm run build
Original file line number Diff line number Diff line change 1+ name : Release to npmjs
2+ on :
3+ push :
4+ tags :
5+ - " v*"
6+ jobs :
7+ release :
8+ runs-on : ubuntu-latest
9+ permissions :
10+ contents : read
11+ id-token : write # Required for OIDC
12+ steps :
13+ - uses : actions/checkout@v5.0.0
14+ with :
15+ persist-credentials : false
16+ - uses : actions/setup-node@v5.0.0
17+ with :
18+ # Use a Node.js version with an NPM version that supports OIDC.
19+ # OIDC is supported since NPM 11.5.1.
20+ node-version : 24.8.0
21+ registry-url : " https://registry.npmjs.org"
22+ - name : Install dependencies
23+ run : npm ci
24+ - name : Publish (build and test in prepublishOnly hook)
25+ run : npm publish --provenance --access public
You can’t perform that action at this time.
0 commit comments