MCPcopy Create free account
hub / github.com/algolia/algoliasearch-client-javascript / publish

Function publish

scripts/publish.ts:3–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { execa } from 'execa';
2
3async function publish(): Promise<void> {
4 // publish the stable public packages
5 await execa(
6 `yarn lerna exec --no-bail -- npm_config_registry=https://registry.npmjs.org/ npm publish --access public`,
7 {
8 shell: 'bash',
9 },
10 );
11
12 // publish the prereleases private packages if any
13 // await execa(
14 // `yarn lerna exec --scope '<the private package>' --no-bail -- npm_config_registry=https://registry.npmjs.org/ npm publish --access private --tag alpha --tag latest`,
15 // {
16 // shell: 'bash',
17 // },
18 // );
19}
20
21publish();

Callers 1

publish.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected