File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ name: Release
3
3
push :
4
4
branches :
5
5
- main
6
+ # These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
7
+ permissions :
8
+ contents : write # to be able to publish a GitHub release
9
+ issues : write # to be able to comment on released issues
10
+ pull-requests : write # to be able to comment on released pull requests
11
+ id-token : write # to enable use of OIDC for npm provenance
12
+
6
13
jobs :
7
14
release :
8
15
name : release
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ async function createPackageJson(answers) {
71
71
if ( answers . publicAccess ) {
72
72
pkg . publishConfig = {
73
73
access : "public" ,
74
+ provenance : true ,
74
75
} ;
75
76
}
76
77
Original file line number Diff line number Diff line change 15
15
- next
16
16
- beta
17
17
- "*.x" # maintenance release branches, e.g. v1.x
18
+ # These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
19
+ permissions:
20
+ contents: write # to be able to publish a GitHub release
21
+ issues: write # to be able to comment on released issues
22
+ pull-requests: write # to be able to comment on released pull requests
23
+ id-token: write # to enable use of OIDC for npm provenance
18
24
19
25
jobs:
20
26
release:
Original file line number Diff line number Diff line change 36
36
},
37
37
"engines" : {
38
38
"node" : " >= 18"
39
+ },
40
+ "publishConfig" : {
41
+ "provenance" : true
39
42
}
40
43
}
You can’t perform that action at this time.
0 commit comments