zklighter-perps 1.0.0 → 1.0.1
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.
- package/.circleci/config.yml +25 -1
- package/package.json +1 -1
package/.circleci/config.yml
CHANGED
|
@@ -61,6 +61,22 @@ 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
|
+
|
|
64
80
|
parameters:
|
|
65
81
|
update_ts_sdk:
|
|
66
82
|
default: false
|
|
@@ -83,4 +99,12 @@ workflows:
|
|
|
83
99
|
filters:
|
|
84
100
|
branches:
|
|
85
101
|
only: main
|
|
86
|
-
|
|
102
|
+
|
|
103
|
+
update_npm_package:
|
|
104
|
+
when:
|
|
105
|
+
not: << pipeline.parameters.update_ts_sdk >>
|
|
106
|
+
jobs:
|
|
107
|
+
- update_npm_package:
|
|
108
|
+
filters:
|
|
109
|
+
branches:
|
|
110
|
+
only: main
|