99 - master
1010 workflow_dispatch :
1111
12+ permissions :
13+ contents : read
14+
1215jobs :
1316 lint :
1417 name : " Lint"
1518 runs-on : ubuntu-latest
1619 steps :
1720 - name : " Checkout"
18- uses : actions/checkout@v4
21+ uses : actions/checkout@v5
1922 with :
2023 fetch-depth : 0
2124 - name : ' Enable corepack'
2225 run : corepack enable
23- - uses : actions/setup-node@v4
26+ - uses : actions/setup-node@v6
2427 with :
2528 node-version : 22
2629 cache : ' yarn'
@@ -29,19 +32,19 @@ jobs:
2932 run : yarn install --immutable
3033
3134 - name : " Lint"
32- run : yarn lint -f @react-hookz /gha
35+ run : yarn lint -f @ver0 /gha
3336
3437 build :
3538 name : " Build"
3639 runs-on : ubuntu-latest
3740 steps :
3841 - name : " Checkout"
39- uses : actions/checkout@v4
42+ uses : actions/checkout@v5
4043 with :
4144 fetch-depth : 0
4245 - name : ' Enable corepack'
4346 run : corepack enable
44- - uses : actions/setup-node@v4
47+ - uses : actions/setup-node@v6
4548 with :
4649 node-version : 22
4750 cache : ' yarn'
@@ -55,23 +58,26 @@ jobs:
5558 test :
5659 name : " Test"
5760 runs-on : ubuntu-latest
61+ strategy :
62+ matrix :
63+ node-version : [ 22, 24 ]
5864 steps :
5965 - name : " Checkout"
60- uses : actions/checkout@v4
66+ uses : actions/checkout@v5
6167 with :
6268 fetch-depth : 0
6369 - name : ' Enable corepack'
6470 run : corepack enable
65- - uses : actions/setup-node@v4
71+ - uses : actions/setup-node@v6
6672 with :
67- node-version : 22
73+ node-version : ${{ matrix.node-version }}
6874 cache : ' yarn'
6975
7076 - name : " Install dependencies"
7177 run : yarn install --immutable
7278
7379 - name : " Test"
74- run : yarn test:coverage --reporter='github-actions' --reporter='junit' --outputFile='./coverage/test-report.junit.xml' --reporter=default
80+ run : yarn test:coverage --reporter='github-actions' --reporter='junit' --outputFile='./coverage/test-report.junit.xml' --reporter=default
7581
7682 - name : " Upload coverage to Codecov"
7783 uses : codecov/codecov-action@v5
@@ -108,45 +114,31 @@ jobs:
108114 if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
109115 outputs :
110116 new-release-published : ${{ steps.release.outputs.new-release-published }}
117+ permissions :
118+ contents : write
119+ issues : write
120+ pull-requests : write
121+ id-token : write
111122 steps :
112123 - name : " Checkout"
113- uses : actions/checkout@v4
124+ uses : actions/checkout@v5
114125 with :
115126 ref : " master"
116127 - name : ' Enable corepack'
117128 run : corepack enable
118- - uses : actions/setup-node@v4
129+ - uses : actions/setup-node@v6
119130 with :
120131 node-version : 22
121132 cache : ' yarn'
122133
123134 - name : Install dependencies
124135 run : yarn install --immutable
125136
126- - name : " disable postinstall"
127- run : yarn pinst --disable
128-
129137 - name : " Build"
130138 run : yarn build
131139
132140 - name : " Release"
133141 env :
134- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
142+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
135143 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
136144 run : yarn semantic-release
137-
138- gen-contributors :
139- name : " Generate Contributors List"
140- runs-on : ubuntu-latest
141- needs : [ "test", "build", "lint", "semantic-release" ]
142- if : github.event_name == 'push'
143- permissions :
144- contents : write
145- steps :
146- - name : Contribute List
147- 148- with :
149- image_size : 100
150- columns_per_row : 8
151- env :
152- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments