We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70e8a4 commit 8887f97Copy full SHA for 8887f97
.github/workflows/ci.yml
@@ -102,6 +102,12 @@ jobs:
102
run: npm run build
103
104
- name: Publish to npm (with provenance)
105
- run: npm publish --provenance --access public
+ run: |
106
+ PKG_VERSION=$(node -p "require('./package.json').version")
107
+ if npm view network-ai@$PKG_VERSION version 2>/dev/null; then
108
+ echo "network-ai@$PKG_VERSION already published — skipping."
109
+ else
110
+ npm publish --provenance --access public
111
+ fi
112
env:
113
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments