From 0216c6353cc1605aa7ce326032b7401c8197eca0 Mon Sep 17 00:00:00 2001 From: Ivan Matveev Date: Sat, 30 May 2026 22:09:45 +0200 Subject: [PATCH] ci: skip already published package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d372f3f..41f37dc 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "ci": "npm run typecheck && npm test && npm run compat:codegraph && npm pack --dry-run", "compat:codegraph": "codegraph --version", "local-release": "changeset version && changeset publish", - "publish-packages": "npm publish --access public --provenance", + "publish-packages": "node -e \"const {execSync}=require('node:child_process'); const p=require('./package.json'); const spec=p.name+'@'+p.version; try { execSync('npm view '+spec+' version', {stdio:'ignore'}); console.log(spec+' already published; skipping.'); } catch { execSync('npm publish --access public --provenance', {stdio:'inherit'}); }\"", "prepack": "npm run typecheck && npm test", "prepublishOnly": "npm run ci", "typecheck": "tsc --noEmit",