From e7a0a32e0cd2bd0962fb573fd11c31365e744f23 Mon Sep 17 00:00:00 2001 From: George Kudrayvtsev Date: Wed, 3 Jan 2024 10:12:40 -0800 Subject: [PATCH] Fixup npm publication script to properly deprecate the package --- .github/workflows/npm_publish.yml | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml index 6ee7469e..a5ffd798 100644 --- a/.github/workflows/npm_publish.yml +++ b/.github/workflows/npm_publish.yml @@ -26,7 +26,7 @@ jobs: - name: Publish npm package run: | yarn publish - npm deprecate soroban-client@latest \ - "⚠️ This package is now deprecated: transition to `stellar-sdk@beta`, instead! 🚚 All future updates and bug fixes will happen there. Please refer to the migration guide for details on porting your codebase: https://github.com/stellar/js-soroban-client/tree/main/docs/migration.md" + npm deprecate soroban-client@"<= 1.0.1" \ + "⚠️ This package is now deprecated: transition to @stellar/stellar-sdk@latest, instead! 🚚 All future updates and bug fixes will happen there. Please refer to the migration guide for details on porting your codebase: https://github.com/stellar/js-soroban-client/tree/main/docs/migration.md" env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index b5d819a0..4219709d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "soroban-client", - "version": "1.0.0", + "version": "1.0.1", "description": "A library for working with Stellar's Soroban RPC servers.", "author": "Stellar Development Foundation ", "homepage": "https://github.com/stellar/js-soroban-client", @@ -17,7 +17,7 @@ "soroban" ], "main": "./lib/index.js", - "browser": "./dist/soroban-client.js", + "browser": "./dist/soroban-client.min.js", "types": "./lib/index.d.ts", "files": [ "/types",