File tree Expand file tree Collapse file tree 3 files changed +60
-2
lines changed
Expand file tree Collapse file tree 3 files changed +60
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : " Publish to NPM"
3+ on :
4+ release :
5+ types :
6+ - " published"
7+
8+ jobs :
9+ publish :
10+ name : Publish to NPM
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v5
14+
15+ - uses : actions/setup-node@v6
16+ with :
17+ cache-dependency-path : ./yarn.lock
18+ cache : " yarn"
19+ node-version : 20
20+
21+ - uses : bahmutov/npm-install@v1
22+ with :
23+ useLockFile : false
24+
25+ - name : Build
26+ run : yarn build
27+
28+ - name : Write release version
29+ run : |
30+ VERSION=${GITHUB_REF_NAME#v}
31+ echo Version: $VERSION
32+ echo "VERSION=$VERSION" >> $GITHUB_ENV
33+
34+ - run : " npm version ${VERSION} --no-git-tag-version"
35+
36+ - uses : JS-DevTools/npm-publish@v4
37+ with :
38+ token : ${{ secrets.NPM_TOKEN }}
39+ access : public
Original file line number Diff line number Diff line change 11{
22 "name" : " @permify/permify-node" ,
3- "version" : " 1.0.10 " ,
3+ "version" : " 1.1.0 " ,
44 "description" : " Permify Node Client" ,
55 "main" : " dist/src/index.js" ,
66 "types" : " dist/src/index.d.ts" ,
77 "repository" : " https://github.com/Permify/permify-node" ,
88 "private" : false ,
9+ "files" : [
10+ " dist" ,
11+ " README.md" ,
12+ " LICENSE"
13+ ],
914 "scripts" : {
1015 "run-instance" : " scripts/run-instance.sh" ,
1116 "run-test" : " ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json" ,
1217 "lint" : " eslint \" src/**/*.ts\" " ,
13- "build" : " rm -rf ./dist && npx tsc" ,
18+ "build" : " npx tsc" ,
1419 "buf:generate" : " buf generate"
1520 },
1621 "keywords" : [
2631 "license" : " Apache-2.0" ,
2732 "dependencies" : {
2833 "@grpc/grpc-js" : " ^1.9.0" ,
34+ "@protobuf-ts/runtime" : " ^2.9.1" ,
35+ "@protobuf-ts/runtime-rpc" : " ^2.9.1" ,
2936 "nice-grpc" : " ^2.1.9" ,
3037 "nice-grpc-common" : " ^2.0.0" ,
3138 "long" : " ^5.2.3"
Original file line number Diff line number Diff line change 748748 resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.2.9.tgz#d229a7b7f9dac167a156992ef23c7f023653f53b"
749749 integrity sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==
750750
751+ " @protobuf-ts/runtime-rpc@^2.9.1 " :
752+ version "2.11.1"
753+ resolved "https://registry.yarnpkg.com/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.11.1.tgz#a6eb2f384bceae8d23a01d0b0e37faf0af36c179"
754+ integrity sha512-4CqqUmNA+/uMz00+d3CYKgElXO9VrEbucjnBFEjqI4GuDrEQ32MaI3q+9qPBvIGOlL4PmHXrzM32vBPWRhQKWQ==
755+ dependencies :
756+ " @protobuf-ts/runtime" " ^2.11.1"
757+
758+ " @protobuf-ts/runtime@^2.11.1" , "@protobuf-ts/runtime@^2.9.1":
759+ version "2.11.1"
760+ resolved "https://registry.yarnpkg.com/@protobuf-ts/runtime/-/runtime-2.11.1.tgz#ee2bf2fac6e2d8deac0ca63471a77481548e5553"
761+ integrity sha512-KuDaT1IfHkugM2pyz+FwiY80ejWrkH1pAtOBOZFuR6SXEFTsnb/jiQWQ1rCIrcKx2BtyxnxW6BWwsVSA/Ie+WQ==
762+
751763" @protobufjs/aspromise@^1.1.1" , "@protobufjs/aspromise@^1.1.2":
752764 version "1.1.2"
753765 resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf"
You can’t perform that action at this time.
0 commit comments