We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1961d commit ecefcfeCopy full SHA for ecefcfe
src/main.js
@@ -79,7 +79,10 @@ const semanticRelease = (opts: PreOpts = {}) => {
79
})
80
.then(currentRelease => {
81
return ctx.cli
82
- .exec(`npm publish --registry "${registry}"`)
+ .exec(
83
+ `npm publish --registry "${registry}" --access ${opts.access ||
84
+ 'restricted'}`
85
+ )
86
.then(() => currentRelease)
87
88
}
src/types.js
@@ -44,6 +44,7 @@ export type CLI = {
44
45
46
export type PreOpts = {
47
+ access?: 'restricted' | 'public',
48
registry?: string,
49
versionHook?: string,
50
cli?: CLI
0 commit comments