zklighter-perps 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,6 +61,25 @@ jobs:
61
61
  PR_URL=$(curl -X POST -H "Authorization: Bearer ${GITHUB_TOKEN}" -d '{"title": "Update SDK", "head": "'$BRANCH_NAME'", "base": "main"}' https://api.github.com/repos/elliottech/zklighter-perps-ts/pulls | jq -r '.html_url')
62
62
  curl -X POST -H 'Content-type: application/json' --data '{"text":"TypeScript SDK has been updated. Check the PR here: '$PR_URL'", "type": "mrkdwn"}' ${SLACK_URL}
63
63
 
64
+ update_npm_package:
65
+ docker:
66
+ - image: cimg/node:22.4.1
67
+
68
+ steps:
69
+ - checkout
70
+
71
+ - run:
72
+ name: Publish npm package
73
+ command: |
74
+ git config --global user.email "hasan@lighter.xyz"
75
+ git config --global user.name "CircleCI Hasan"
76
+ npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
77
+ npm version patch
78
+ npm publish
79
+ git add .
80
+ git commit -m "Update npm package"
81
+ git push origin main
82
+
64
83
  parameters:
65
84
  update_ts_sdk:
66
85
  default: false
@@ -83,4 +102,12 @@ workflows:
83
102
  filters:
84
103
  branches:
85
104
  only: main
86
-
105
+
106
+ update_npm_package:
107
+ when:
108
+ not: << pipeline.parameters.update_ts_sdk >>
109
+ jobs:
110
+ - update_npm_package:
111
+ filters:
112
+ branches:
113
+ only: main
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {