MCPcopy Create free account
hub / github.com/api3dao/airnode / prePublishSetup

Function prePublishSetup

docker/scripts/npm.ts:147–155  ·  view source on GitHub ↗
(npmRegistry: string, releaseBranch?: string)

Source from the content-addressed store, hash-verified

145};
146
147const prePublishSetup = async (npmRegistry: string, releaseBranch?: string) => {
148 const npmRegistryUrl = getNpmRegistryUrl(npmRegistry);
149 fetchProject(!releaseBranch);
150 if (releaseBranch) selectBranch(releaseBranch);
151 installDependencies();
152 buildProject();
153 const npmAuthToken = await getNpmAuthToken(npmRegistry, npmRegistryUrl);
154 authNpmRegistry(npmRegistryUrl, npmAuthToken);
155};
156
157export const publishSnapshot = async (npmRegistry: string, npmTag: string, releaseBranch?: string) => {
158 await prePublishSetup(npmRegistry, releaseBranch);

Callers 2

publishSnapshotFunction · 0.85
publishFunction · 0.85

Calls 7

getNpmRegistryUrlFunction · 0.85
fetchProjectFunction · 0.85
selectBranchFunction · 0.85
installDependenciesFunction · 0.85
buildProjectFunction · 0.85
getNpmAuthTokenFunction · 0.85
authNpmRegistryFunction · 0.85

Tested by

no test coverage detected