File tree Expand file tree Collapse file tree 3 files changed +49
-4
lines changed Expand file tree Collapse file tree 3 files changed +49
-4
lines changed Original file line number Diff line number Diff line change 33 branches :
44 - main
55 pull_request : {}
6+ workflow_call : {}
67
78concurrency :
89 group : ' ${{ github.workflow }} - ${{ github.head_ref || github.ref }}'
3132 node-version : ${{ matrix.node-version }}
3233 - name : Setup LCOV
3334 uses : hrishikesh-kadam/setup-lcov@v1
34-
35- - name : Enable Yarn
35+ - name : Setup Yarn
3636 run : corepack enable
3737
3838 - name : Install Packages
4848 run : yarn coverage
4949
5050 - name : Report Coverage
51- if : ${{ matrix.node-version == 20 }}
51+ if : ${{ matrix.node-version == 20 && github.event_name == 'pull_request' }}
5252 uses : zgosalvez/github-actions-report-lcov@v4
5353 with :
5454 coverage-files : coverage/lcov.info
Original file line number Diff line number Diff line change 1+ on :
2+ workflow_dispatch : {}
3+ release :
4+ types :
5+ - published
6+
7+ jobs :
8+ check :
9+ uses : ./.github/workflows/ci.yml
10+ secrets : inherit
11+
12+ publish :
13+ needs : check
14+
15+ runs-on : ubuntu-latest
16+
17+ permissions :
18+ contents : read
19+ id-token : write
20+
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : lts/*
29+ registry-url : ' https://registry.npmjs.com'
30+ check-latest : true
31+ - name : Setup Yarn
32+ run : corepack enable
33+
34+ - name : Install Packages
35+ run : yarn install
36+
37+ - name : Build
38+ run : yarn build
39+
40+ - name : Publish
41+ run : |
42+ npm install -g npm@latest
43+ npm publish --provenance
44+ env :
45+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 4747 "lint-docs" : " markdownlint-cli2 \" **/*.md\" \" #node_modules\" " ,
4848 "lint-eslint-docs" : " yarn build && eslint-doc-generator --check" ,
4949 "docs" : " eslint-doc-generator" ,
50- "release" : " bumpp && yarn run build " ,
50+ "release" : " bumpp && echo \" Create a new release in GitHub to trigger the publish workflow. \" " ,
5151 "test" : " vitest" ,
5252 "coverage" : " vitest run --coverage" ,
5353 "typecheck" : " tsc --noEmit"
You can’t perform that action at this time.
0 commit comments