Skip to content

Commit

Permalink
Skip NPM config registry if no custom registry was set
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovmr committed May 2, 2024
1 parent 0a41760 commit 7c7f952
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
<goal>npm</goal>
</goals>
<configuration>
<skip>${skipNpmConfigRegistry}</skip>
<arguments>config set registry ${env.NPM_REGISTRY_URL}</arguments>
</configuration>
</execution>
Expand Down Expand Up @@ -261,4 +262,27 @@
<module>packages</module>
</modules>

<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<skipNpmConfigRegistry>true</skipNpmConfigRegistry>
</properties>
</profile>
<profile>
<id>doNotSkipNpmConfigRegistry</id>
<activation>
<property>
<name>env.NPM_REGISTRY_URL</name>
</property>
</activation>
<properties>
<skipNpmConfigRegistry>false</skipNpmConfigRegistry>
</properties>
</profile>
</profiles>

</project>

0 comments on commit 7c7f952

Please sign in to comment.