Skip to content

Commit 37e064c

Browse files
Sync from the Ink Studio AI repository (bb11137)
1 parent 865a5b7 commit 37e064c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,16 @@ jobs:
5050
exit 1
5151
fi
5252
53+
# The first version is published by hand (npm can set up trusted
54+
# publishing only for a package that exists), so skip a published version.
5355
- name: Publish to npm
54-
run: npm publish --access public
56+
run: |
57+
version=$(node -p "require('./package.json').version")
58+
if npm view "inkstudioai@${version}" version >/dev/null 2>&1; then
59+
echo "inkstudioai@${version} is already on npm, so this step skips the publish."
60+
else
61+
npm publish --access public
62+
fi
5563
5664
- name: Install mcp-publisher
5765
run: |

0 commit comments

Comments
 (0)