forked from apache/incubator-kie-tools
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set NPM custom registry URL using npm config (#8)
* Set NPM_REGISTRY_URL using npm config * Skip NPM config registry if no custom registry was set
- Loading branch information
Showing
1 changed file
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,14 +152,23 @@ | |
<pnpmVersion>${version.pnpm}</pnpmVersion> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>npm config set registry</id> | ||
<goals> | ||
<goal>npm</goal> | ||
</goals> | ||
<configuration> | ||
<skip>${skipNpmConfigRegistry}</skip> | ||
<arguments>config set registry ${env.NPM_REGISTRY_URL}</arguments> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>npm install lock-treatment-tool</id> | ||
<goals> | ||
<goal>npm</goal> | ||
</goals> | ||
<configuration> | ||
<skip>${skip.ui.deps}</skip> | ||
<npmRegistryURL>${env.NPM_REGISTRY_URL}</npmRegistryURL> | ||
<arguments>install @kie/[email protected] -w</arguments> | ||
</configuration> | ||
</execution> | ||
|
@@ -170,7 +179,6 @@ | |
</goals> | ||
<configuration> | ||
<skip>${skip.ui.deps}</skip> | ||
<npmRegistryURL>${env.NPM_REGISTRY_URL}</npmRegistryURL> | ||
<arguments>run env -- locktt --skipIntegrity</arguments> | ||
</configuration> | ||
</execution> | ||
|
@@ -181,7 +189,6 @@ | |
</goals> | ||
<configuration> | ||
<skip>${skip.ui.deps}</skip> | ||
<npmRegistryURL>${env.PNPM_REGISTRY_URL}</npmRegistryURL> | ||
<arguments>bootstrap</arguments> | ||
</configuration> | ||
</execution> | ||
|
@@ -255,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> |