Skip to content

Commit eb09e45

Browse files
committed
1 parent 2a5a129 commit eb09e45

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,35 @@ on:
77
- next
88
- feature/**
99

10+
permissions:
11+
contents: read # for checkout
12+
1013
jobs:
1114
release:
1215
env:
1316
# Disable husky (git hooks) in CI, see: https://typicode.github.io/husky/#/?id=disable-husky-in-cidocker
1417
HUSKY: 0
1518
name: Release
1619
runs-on: ubuntu-24.04
20+
permissions:
21+
contents: write # to be able to publish a GitHub release
22+
issues: write # to be able to comment on released issues
23+
pull-requests: write # to be able to comment on released pull requests
24+
id-token: write # to enable use of OIDC for npm provenance
1725
steps:
18-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
1927
with:
2028
fetch-depth: 0
21-
- uses: actions/setup-node@v4
29+
- uses: actions/setup-node@v6
2230
with:
31+
cache: npm
2332
node-version-file: '.nvmrc'
2433
registry-url: https://registry.npmjs.org/
25-
cache: npm
2634
- name: Install Dependencies
2735
run: npm clean-install
36+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
37+
run: npm audit signatures
2838
- name: Release package to npm and GitHub
2939
env:
3040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3241
run: npm run release:ci

.npmrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
22

33
@boehringer-ingelheim:registry=https://registry.npmjs.org/
4-
5-
access=public
6-
always-auth=true

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
"bugs": {
2222
"url": "https://github.com/Boehringer-Ingelheim/eslint-config/issues"
2323
},
24+
"publishConfig": {
25+
"access": "public",
26+
"provenance": true,
27+
"registry": "https://registry.npmjs.org/"
28+
},
2429
"files": [
2530
"configs",
2631
"lib",

0 commit comments

Comments
 (0)