Skip to content

Commit b4742a3

Browse files
committed
fix: Direct npm publish without version check
1 parent c855b63 commit b4742a3

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)