99 - master
1010 workflow_dispatch :
1111
12+ permissions :
13+ contents : read
14+
1215jobs :
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
3437
3538 build :
3639 name : " Build"
7275 run : yarn install --immutable
7376
7477 - 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
7679
7780 - name : " Upload coverage to Codecov"
7881 uses : codecov/codecov-action@v5
9598 permissions :
9699 pull-requests : write
97100 contents : write
98- needs : [ "test", "build", "lint" ]
101+ needs : [ "test", "build" ]
99102 if : github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
100103 steps :
101104 - uses : fastify/github-action-merge-dependabot@v3
@@ -105,10 +108,15 @@ jobs:
105108 semantic-release :
106109 name : " Release"
107110 runs-on : ubuntu-latest
108- needs : [ "test", "build", "lint" ]
111+ needs : [ "test", "build" ]
109112 if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
110113 outputs :
111114 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
112120 steps :
113121 - name : " Checkout"
114122 uses : actions/checkout@v4
@@ -132,6 +140,6 @@ jobs:
132140
133141 - name : " Release"
134142 env :
135- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
143+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
136144 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
137145 run : yarn semantic-release
0 commit comments