9
9
- master
10
10
workflow_dispatch :
11
11
12
+ permissions :
13
+ contents : read
14
+
12
15
jobs :
13
- # ToDo: Configure linter
14
- # lint:
15
- # name: "Lint"
16
- # runs-on: ubuntu-latest
17
- # steps:
18
- # - name: "Checkout"
19
- # uses: actions/checkout@v4
20
- # with:
21
- # fetch-depth: 0
22
- # - name: 'Enable corepack'
23
- # run: corepack enable
24
- # - uses: actions/setup-node@v4
25
- # with:
26
- # node-version: 22
27
- # cache: 'yarn'
28
- #
29
- # - name: "Install dependencies"
30
- # run: yarn install --immutable
31
- #
32
- # - name: "Lint"
33
- # run: yarn lint -f @react-hookz/gha
16
+ # ToDo: Configure linter
17
+ # lint:
18
+ # name: "Lint"
19
+ # runs-on: ubuntu-latest
20
+ # steps:
21
+ # - name: "Checkout"
22
+ # uses: actions/checkout@v4
23
+ # with:
24
+ # fetch-depth: 0
25
+ # - name: 'Enable corepack'
26
+ # run: corepack enable
27
+ # - uses: actions/setup-node@v4
28
+ # with:
29
+ # node-version: 22
30
+ # cache: 'yarn'
31
+ #
32
+ # - name: "Install dependencies"
33
+ # run: yarn install --immutable
34
+ #
35
+ # - name: "Lint"
36
+ # run: yarn lint -f @react-hookz/gha
34
37
35
38
build :
36
39
name : " Build"
72
75
run : yarn install --immutable
73
76
74
77
- name : " Test"
75
- run : yarn test:coverage --reporter='github-actions' --reporter='junit' --outputFile='./coverage/test-report.junit.xml' --reporter=default
78
+ run : yarn test:coverage --reporter='github-actions' --reporter='junit' --outputFile='./coverage/test-report.junit.xml' --reporter=default
76
79
77
80
- name : " Upload coverage to Codecov"
78
81
uses : codecov/codecov-action@v5
95
98
permissions :
96
99
pull-requests : write
97
100
contents : write
98
- needs : [ "test", "build", "lint" ]
101
+ needs : [ "test", "build" ]
99
102
if : github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
100
103
steps :
101
104
- uses : fastify/github-action-merge-dependabot@v3
@@ -105,10 +108,15 @@ jobs:
105
108
semantic-release :
106
109
name : " Release"
107
110
runs-on : ubuntu-latest
108
- needs : [ "test", "build", "lint" ]
111
+ needs : [ "test", "build" ]
109
112
if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
110
113
outputs :
111
114
new-release-published : ${{ steps.release.outputs.new-release-published }}
115
+ permissions :
116
+ contents : write
117
+ issues : write
118
+ pull-requests : write
119
+ id-token : write
112
120
steps :
113
121
- name : " Checkout"
114
122
uses : actions/checkout@v4
@@ -132,6 +140,6 @@ jobs:
132
140
133
141
- name : " Release"
134
142
env :
135
- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
143
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
136
144
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
137
145
run : yarn semantic-release
0 commit comments