Skip to content

Commit

Permalink
Fix the way we deprecate the old package (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic authored Jun 24, 2024
1 parent fa69e4c commit 5add4af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish npm package under old scope
run: npm deprecate@latest js-xdr "⚠️ This package has moved to @stellar/js-xdr! 🚚"
run: |
V=$(cat package.json | jq '.version' | sed -e 's/\"//g')
echo "Deprecating js-xdr@$V"
npm deprecate js-xdr@"<= $V" "⚠️ This package has moved to @stellar/js-xdr! 🚚"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5add4af

Please sign in to comment.