@@ -118,11 +118,13 @@ addPlugin("@semantic-release/changelog", {
118
118
> All notable changes to this project will be documented in this file`
119
119
} ) ;
120
120
121
- const pkgRoot = NPM_PACKAGE_ROOT || "." ;
122
- addPlugin ( "@semantic-release/npm" , {
123
- tarballDir : "pack" ,
124
- pkgRoot,
125
- } ) ;
121
+ if ( process . env . SKIP_NPM_PUBLISH === undefined ) {
122
+ const pkgRoot = NPM_PACKAGE_ROOT || "." ;
123
+ addPlugin ( "@semantic-release/npm" , {
124
+ tarballDir : "pack" ,
125
+ pkgRoot,
126
+ } ) ;
127
+ }
126
128
127
129
const actionExists = existsSync ( "./action.yml" ) ;
128
130
if ( actionExists ) {
@@ -164,23 +166,25 @@ if (manifestExists && GITHUB_REF === "refs/heads/main") {
164
166
} ) ;
165
167
}
166
168
167
- const packageFilesPrefix = process . env . NPM_PACKAGE_ROOT ? `${ process . env . NPM_PACKAGE_ROOT } /` : "" ;
168
- addPlugin ( "@semantic-release/git" , {
169
- "assets" : [
170
- "LICENSE*" ,
171
- "CHANGELOG.md" ,
172
- `${ packageFilesPrefix } package.json` ,
173
- `${ packageFilesPrefix } package-lock.json` ,
174
- `${ packageFilesPrefix } npm-shrinkwrap.json` ,
175
- `${ packageFilesPrefix } yarn.lock` ,
176
- `${ packageFilesPrefix } pnpm-lock.yaml` ,
177
- "public/**/*" ,
178
- "supabase/**/*" ,
179
- "action.yml" ,
180
- "manifest.json"
181
- ] ,
182
- "message" : `chore(<%= nextRelease.type %>): release <%= nextRelease.version %> <%= nextRelease.channel !== null ? \`on \${nextRelease.channel} channel \` : '' %>[skip ci]\n\n<%= nextRelease.notes %>`
183
- } ) ;
169
+ if ( process . env . SKIP_NPM_PUBLISH === undefined ) {
170
+ const packageFilesPrefix = process . env . NPM_PACKAGE_ROOT ? `${ process . env . NPM_PACKAGE_ROOT } /` : "" ;
171
+ addPlugin ( "@semantic-release/git" , {
172
+ "assets" : [
173
+ "LICENSE*" ,
174
+ "CHANGELOG.md" ,
175
+ `${ packageFilesPrefix } package.json` ,
176
+ `${ packageFilesPrefix } package-lock.json` ,
177
+ `${ packageFilesPrefix } npm-shrinkwrap.json` ,
178
+ `${ packageFilesPrefix } yarn.lock` ,
179
+ `${ packageFilesPrefix } pnpm-lock.yaml` ,
180
+ "public/**/*" ,
181
+ "supabase/**/*" ,
182
+ "action.yml" ,
183
+ "manifest.json"
184
+ ] ,
185
+ "message" : `chore(<%= nextRelease.type %>): release <%= nextRelease.version %> <%= nextRelease.channel !== null ? \`on \${nextRelease.channel} channel \` : '' %>[skip ci]\n\n<%= nextRelease.notes %>`
186
+ } ) ;
187
+ }
184
188
185
189
addPlugin ( "@semantic-release/github" , {
186
190
"addReleases" : "bottom" ,
@@ -193,7 +197,7 @@ addPlugin("@semantic-release/github", {
193
197
} ) ;
194
198
195
199
const dockerExists = existsSync ( "./Dockerfile" ) ;
196
- if ( dockerExists ) {
200
+ if ( dockerExists && process . env . SKIP_DOCKER_PUBLISH === undefined ) {
197
201
addPlugin ( "eclass-docker-fork" , {
198
202
"baseImageName" : `${ owner } /${ repo } ` ,
199
203
"registries" : [
0 commit comments