@@ -118,11 +118,13 @@ addPlugin("@semantic-release/changelog", {
118118> All notable changes to this project will be documented in this file`
119119} ) ;
120120
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+ }
126128
127129const actionExists = existsSync ( "./action.yml" ) ;
128130if ( actionExists ) {
@@ -164,23 +166,25 @@ if (manifestExists && GITHUB_REF === "refs/heads/main") {
164166 } ) ;
165167}
166168
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+ }
184188
185189addPlugin ( "@semantic-release/github" , {
186190 "addReleases" : "bottom" ,
@@ -193,7 +197,7 @@ addPlugin("@semantic-release/github", {
193197} ) ;
194198
195199const dockerExists = existsSync ( "./Dockerfile" ) ;
196- if ( dockerExists ) {
200+ if ( dockerExists && process . env . SKIP_DOCKER_PUBLISH === undefined ) {
197201 addPlugin ( "eclass-docker-fork" , {
198202 "baseImageName" : `${ owner } /${ repo } ` ,
199203 "registries" : [
0 commit comments