diff --git a/bin/publish-jsr b/bin/publish-jsr index 5ea4254..30e68da 100644 --- a/bin/publish-jsr +++ b/bin/publish-jsr @@ -8,5 +8,8 @@ yarn build # Navigate to the dist directory cd dist -# Publish with the appropriate tag -deno publish --allow-slow-types +if [ -n "${JSR_TOKEN-}" ]; then + npx jsr publish --allow-slow-types --token="$JSR_TOKEN" +else + npx jsr publish --allow-slow-types +fi diff --git a/jsr.json b/jsr.json index ef4f966..c1b8695 100644 --- a/jsr.json +++ b/jsr.json @@ -1,5 +1,5 @@ { - "name": "@stainless-api/sink-npm", + "name": "@stainless-api/sink-npm-test", "version": "0.11.3-beta.1", "exports": "./index.mjs", "publish": {