Skip to content

Commit 5e5dd35

Browse files
Merge pull request #437 from AndreaPontrandolfo/AndreaPontrandolfo/issue436
AndreaPontrandolfo/issue436
2 parents 69d95e6 + 0f4b223 commit 5e5dd35

5 files changed

Lines changed: 28 additions & 7 deletions

File tree

.changeset/tough-fireants-know.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'eslint-config-sheriff': minor
3+
'@sherifforg/create-config': minor
4+
'@sherifforg/cli': minor
5+
---
6+
7+
fix: Fix CI workflow for OICD trusted publishing workflow
8+
Fixes #436

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ on:
66

77
concurrency: ${{ github.workflow }}-${{ github.ref }}
88

9+
permissions:
10+
contents: read # for checkout
11+
912
jobs:
1013
release:
1114
name: Release
1215
runs-on: ubuntu-latest
1316
permissions:
14-
contents: write
15-
id-token: write
16-
pull-requests: write
17+
contents: write # to be able to publish a GitHub release
18+
issues: write # to be able to comment on released issues
19+
pull-requests: write # to be able to comment on released pull requests
20+
id-token: write # to be able to publish to npm using OIDC
1721
steps:
1822
- name: Checkout
1923
uses: actions/checkout@v4
@@ -25,7 +29,7 @@ jobs:
2529
uses: actions/setup-node@v4
2630
with:
2731
node-version-file: package.json
28-
cache: 'pnpm'
32+
cache: "pnpm"
2933
- name: Install dependencies
3034
run: pnpm install
3135
- name: Create Release Pull Request or Publish to npm

packages/eslint-config-sheriff/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@
118118
"node": ">=22.21.1"
119119
},
120120
"publishConfig": {
121-
"access": "public"
121+
"access": "public",
122+
"provenance": true,
123+
"registry": "https://registry.npmjs.org/",
124+
"tag": "latest"
122125
}
123126
}

packages/sheriff-cli/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
"node": ">=22.21.1"
7070
},
7171
"publishConfig": {
72-
"access": "public"
72+
"access": "public",
73+
"provenance": true,
74+
"registry": "https://registry.npmjs.org/",
75+
"tag": "latest"
7376
}
7477
}

packages/sheriff-create-config/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
"node": ">=22.21.1"
7878
},
7979
"publishConfig": {
80-
"access": "public"
80+
"access": "public",
81+
"provenance": true,
82+
"registry": "https://registry.npmjs.org/",
83+
"tag": "latest"
8184
}
8285
}

0 commit comments

Comments
 (0)