Skip to content

Commit 2b8e358

Browse files
anandgupta42claude
andauthored
fix: npm publish glob and PyPI skip-existing for release workflow (#21)
- publish.ts: change glob from `*/package.json` to `**/package.json` to find scoped package directories (@altimate/cli-*) which are 2 levels deep - release.yml: add skip-existing to PyPI publish so it doesn't fail when the engine version hasn't changed between releases Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 340ce8f commit 2b8e358

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ jobs:
115115
uses: pypa/gh-action-pypi-publish@release/v1
116116
with:
117117
packages-dir: packages/altimate-engine/dist/
118+
skip-existing: true
118119

119120
github-release:
120121
name: Create GitHub Release

packages/altimate-code/script/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const dir = fileURLToPath(new URL("..", import.meta.url))
88
process.chdir(dir)
99

1010
const binaries: Record<string, string> = {}
11-
for (const filepath of new Bun.Glob("*/package.json").scanSync({ cwd: "./dist" })) {
11+
for (const filepath of new Bun.Glob("**/package.json").scanSync({ cwd: "./dist" })) {
1212
const pkg = await Bun.file(`./dist/${filepath}`).json()
1313
binaries[pkg.name] = pkg.version
1414
}

0 commit comments

Comments
 (0)