Skip to content

Commit e4be146

Browse files
authored
Merge pull request #95 from Boehringer-Ingelheim/feature/secure-publishing-process
feature/secure-publishing-process
2 parents 18166e4 + 244b827 commit e4be146

File tree

6 files changed

+201
-1509
lines changed

6 files changed

+201
-1509
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
@boehringer-ingelheim:registry=https://registry.npmjs.org/
44

5+
# Publish Configuration: https://docs.npmjs.com/cli/v11/commands/npm-publish#configuration
56
access=public
6-
always-auth=true
7+
provenance=true

.releaserc.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@ module.exports = {
1515
plugins: [
1616
'@semantic-release/commit-analyzer',
1717
'@semantic-release/release-notes-generator',
18-
'@semantic-release/changelog',
1918
'@semantic-release/npm',
20-
[
21-
'@semantic-release/git',
22-
{
23-
assets: ['CHANGELOG.md', 'README.md', 'package.json', 'package-lock.json'],
24-
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
25-
},
26-
],
2719
'@semantic-release/github',
2820
],
2921
};

0 commit comments

Comments
 (0)