File tree Expand file tree Collapse file tree 4 files changed +91
-23
lines changed Expand file tree Collapse file tree 4 files changed +91
-23
lines changed Original file line number Diff line number Diff line change @@ -10,35 +10,48 @@ jobs:
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v6
13+
1314 - uses : actions/setup-node@v6
1415 with :
1516 node-version : 25
1617 check-latest : true
18+
1719 - name : Install dependencies
1820 run : npm i
21+
1922 - name : Biome
2023 run : node --run biome:ci
24+
2125 - name : Typecheck
2226 run : node --run typecheck
27+
2328 - name : ESLint
2429 run : node --run eslint
30+
2531 - name : Prettier
2632 run : node --run prettier:check
33+
2734 - name : Bundle
2835 run : node --run build
36+
2937 - name : Build website
3038 run : node --run build:website
39+
3140 - name : Install Playwright Browsers
3241 run : npx playwright install chromium firefox
42+
3343 - name : Test
3444 run : node --run test
3545 timeout-minutes : 4
46+
3647 - name : Visual regression test
3748 run : node --run visual
49+
3850 - name : Upload coverage
3951 uses : codecov/codecov-action@v5
4052 with :
4153 token : ${{ secrets.CODECOV_TOKEN }}
54+
4255 - name : Deploy gh-pages
4356 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
4457 run : |
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Version to publish (e.g., 0.1.1, 0.2.0, 1.0.0)'
8+ required : true
9+ type : string
10+
11+ jobs :
12+ publish :
13+ name : Publish
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : write
17+ id-token : write
18+
19+ steps :
20+ - uses : actions/checkout@v6
21+ with :
22+ fetch-depth : 0
23+
24+ - uses : actions/setup-node@v6
25+ with :
26+ node-version : 25
27+ check-latest : true
28+ registry-url : ' https://registry.npmjs.org'
29+
30+ - name : Install dependencies
31+ run : npm i
32+
33+ - name : Biome
34+ run : node --run biome:ci
35+
36+ - name : Typecheck
37+ run : node --run typecheck
38+
39+ - name : ESLint
40+ run : node --run eslint
41+
42+ - name : Prettier
43+ run : node --run prettier:check
44+
45+ - name : Bundle
46+ run : node --run build
47+
48+ - name : Build website
49+ run : node --run build:website
50+
51+ - name : Install Playwright Browsers
52+ run : npx playwright install chromium firefox
53+
54+ - name : Test
55+ run : node --run test
56+ timeout-minutes : 4
57+
58+ - name : Visual regression test
59+ run : node --run visual
60+
61+ - name : Update version
62+ run : |
63+ git config user.name "${{ github.actor }}"
64+ git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
65+ npm version ${{ inputs.version }}
66+
67+ # https://docs.npmjs.com/trusted-publishers
68+ - name : Publish to npm
69+ run : npm publish
70+
71+ - name : Push commit and tag
72+ run : git push origin main --follow-tags
73+
74+ - name : Create GitHub Release
75+ run : gh release create v${{ inputs.version }} --title "v${{ inputs.version }}" --generate-notes
76+ env :
77+ GH_TOKEN : ${{ github.token }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111 "type" : " git" ,
1212 "url" : " git+https://github.com/Comcast/react-data-grid.git"
1313 },
14+ "homepage" : " https://github.com/Comcast/react-data-grid#readme" ,
1415 "bugs" : " https://github.com/Comcast/react-data-grid/issues" ,
1516 "type" : " module" ,
1617 "exports" : {
You can’t perform that action at this time.
0 commit comments