Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 9e5db41

Browse files
authored
Merge pull request #31 from nordeck/nic/feat/npm-publish-public
Publish as public packages
2 parents 0df37c5 + 8a1d6a3 commit 9e5db41

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/publishAllPackages.js

+10-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17+
/**
18+
* Publish all non-published packages to the NPM registry.
19+
*
20+
* !!! This script is intended to only be run by the github workflow! !!!
21+
*/
22+
1723
const fs = require('fs');
1824
const path = require('path');
1925
const child_process = require('child_process');
@@ -45,9 +51,10 @@ for (let p of packages) {
4551

4652
console.log(`🔄 Publish package ${name}@${version}`);
4753

48-
child_process.execSync('npm publish --registry https://registry.npmjs.org', {
49-
cwd: packagePath,
50-
});
54+
child_process.execSync(
55+
'npm publish --registry https://registry.npmjs.org --access public',
56+
{ cwd: packagePath },
57+
);
5158

5259
console.log(`✅ Package ${name} published`);
5360
}

0 commit comments

Comments
 (0)