Skip to content

Commit 13d7a60

Browse files
committed
ci: exclude lint from requirements
1 parent 8455e5c commit 13d7a60

File tree

3 files changed

+41
-25
lines changed

3 files changed

+41
-25
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,31 @@ on:
99
- master
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
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
3437

3538
build:
3639
name: "Build"
@@ -72,7 +75,7 @@ jobs:
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
@@ -95,7 +98,7 @@ jobs:
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

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!/dist

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
"type": "git",
1414
"url": "https://github.com/ver0-project/react-hooks-testing"
1515
},
16+
"bugs": {
17+
"url": "https://github.com/ver0-project/react-hooks-testing/issues"
18+
},
19+
"publishConfig": {
20+
"access": "public"
21+
},
1622
"license": "MIT",
1723
"author": "Anton Zinovyev <xog3@yandex.ru>",
1824
"type": "module",

0 commit comments

Comments
 (0)