tag-publish 1.4.0.dev3__tar.gz → 1.4.0.dev5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tag-publish
3
- Version: 1.4.0.dev3
3
+ Version: 1.4.0.dev5
4
4
  Summary: Tools used to publish Python packages, Docker images and Helm charts for GitHub tag and branch
5
5
  License: FreeBSD
6
6
  License-File: LICENSE
@@ -96,7 +96,7 @@ include = [
96
96
  ]
97
97
  requires-python = ">=3.11"
98
98
  dependencies = ["PyYAML<7,>=6", "security-md<2,>=1", "githubkit<1,>=0"]
99
- version = "1.4.0.dev3"
99
+ version = "1.4.0.dev5"
100
100
 
101
101
  [project.optional-dependencies]
102
102
  pypi = ["requests<3,>=2", "twine<7,>=6", "id<2,>=1"]
@@ -152,7 +152,13 @@ def node(
152
152
  open_file.write("always-auth=true\n")
153
153
 
154
154
  subprocess.run(["npm", "set", "registry", f"https://{repo_config['host']}"], cwd=cwd, check=True)
155
- subprocess.run(["npm", "publish", *([] if publish else ["--dry-run"]), *args], cwd=cwd, check=True)
155
+ # npm 11 checks the registry versions even in dry-run mode, which fails for the non-tag
156
+ # versions that are never published, `--force` skips that check without publishing anything.
157
+ subprocess.run(
158
+ ["npm", "publish", *([] if publish else ["--dry-run", "--force"]), *args],
159
+ cwd=cwd,
160
+ check=True,
161
+ )
156
162
 
157
163
  if is_github:
158
164
  if old_npmrc is None: