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

Function getNpmAuthToken

docker/scripts/npm.ts:134–145  ·  view source on GitHub ↗
(npmRegistry: string, npmRegistryUrl: string)

Source from the content-addressed store, hash-verified

132};
133
134const getNpmAuthToken = async (npmRegistry: string, npmRegistryUrl: string) => {
135 let npmAuthToken = process.env.NPM_TOKEN;
136 if (npmRegistry === 'local') {
137 npmAuthToken = await registerUser(npmRegistryUrl);
138 }
139
140 if (!npmAuthToken) {
141 throw new Error('Missing NPM authentication token');
142 }
143
144 return npmAuthToken;
145};
146
147const prePublishSetup = async (npmRegistry: string, releaseBranch?: string) => {
148 const npmRegistryUrl = getNpmRegistryUrl(npmRegistry);

Callers 1

prePublishSetupFunction · 0.85

Calls 1

registerUserFunction · 0.85

Tested by

no test coverage detected