File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,25 +56,11 @@ jobs:
5656 id : pkg
5757 run : echo "version=$(node -p \"require('./package.json').version\")" >> $GITHUB_OUTPUT
5858
59- - name : Check npm version
60- id : npm
61- run : |
62- if npm view @halilertekin/claude-code-router-config@${{ steps.pkg.outputs.version }} version >/dev/null 2>&1; then
63- echo "published=true" >> $GITHUB_OUTPUT
64- else
65- echo "published=false" >> $GITHUB_OUTPUT
66- fi
67-
6859 - name : Publish to npm
69- if : steps.npm.outputs.published != 'true'
7060 run : npm publish --access public
7161 env :
7262 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
7363
74- - name : Skip publish (already on npm)
75- if : steps.npm.outputs.published == 'true'
76- run : echo "Version already published, skipping npm publish."
77-
7864 - name : Create GitHub Release
7965 uses : softprops/action-gh-release@v2
8066 with :
You can’t perform that action at this time.
0 commit comments