From 77cf320d57d44ae4768b0d59c59729185908aef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 28 Nov 2024 12:44:03 +0100 Subject: [PATCH] Fix npm publish --- config.md | 2 +- tag_publish/configuration.py | 3 ++- tag_publish/schema.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.md b/config.md index 63d2450..0a81f41 100644 --- a/config.md +++ b/config.md @@ -52,7 +52,7 @@ _Tag Publish configuration file (.github/publish.yaml)_ - **`repository`** _(object)_: The packages repository where we should publish the packages. Can contain additional properties. Default: `{"github": {"host": "npm.pkg.github.com"}}`. - **Additional properties** _(object)_ - **`host`** _(string)_: The host of the repository URL. - - **`args`** _(array)_: The arguments to pass to the publish command. Default: `["--provenance"]`. + - **`args`** _(array)_: The arguments to pass to the publish command. Default: `["--provenance", "--access=public"]`. - **Items** _(string)_ - **`helm`** _(object)_: Configuration to publish Helm charts on GitHub release. - **`packages`** _(array)_: The configuration of packages that will be published. diff --git a/tag_publish/configuration.py b/tag_publish/configuration.py index 965cadf..a3bfb4d 100644 --- a/tag_publish/configuration.py +++ b/tag_publish/configuration.py @@ -293,7 +293,7 @@ class HelmPackage(TypedDict, total=False): """ -NODE_ARGS_DEFAULT = ["--provenance"] +NODE_ARGS_DEFAULT = ["--provenance", "--access=public"] """ Default value of the field path 'node args' """ @@ -352,6 +352,7 @@ class Node(TypedDict, total=False): default: - --provenance + - --access=public """ diff --git a/tag_publish/schema.json b/tag_publish/schema.json index 72bf83c..6f31127 100644 --- a/tag_publish/schema.json +++ b/tag_publish/schema.json @@ -198,7 +198,7 @@ "title": "Node args", "description": "The arguments to pass to the publish command", "type": "array", - "default": ["--provenance"], + "default": ["--provenance", "--access=public"], "items": { "type": "string" }