File tree Expand file tree Collapse file tree 4 files changed +14
-18
lines changed
packages/sdk/typescript/human-protocol-sdk Expand file tree Collapse file tree 4 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 2424 file : ./packages/core/package.json
2525 field : version
2626 value : ${{ github.event.release.tag_name }}
27- - uses : JS-DevTools/npm-publish@v3
28- with :
29- package : ./packages/core/package.json
30- access : public
31- token : ${{ secrets.NPM_TOKEN }}
27+ - name : Publish package
28+ run : yarn workspace @human-protocol/core npm publish --access public
29+ env :
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -23,26 +23,23 @@ jobs:
2323 run : yarn install --immutable
2424 - name : Build core package
2525 run : yarn build:core
26- - name : Change Node.js SDK version
26+ - name : Change Node.js SDK version from release tag
2727 uses : jossef/action-set-json-field@v2
2828 if : ${{ github.event_name != 'workflow_dispatch' }}
2929 with :
3030 file : ./packages/sdk/typescript/human-protocol-sdk/package.json
3131 field : version
3232 value : ${{ github.event.release.tag_name }}
33- - name : Change Node.js SDK version
33+ - name : Change Node.js SDK version from workflow input
3434 uses : jossef/action-set-json-field@v2
3535 if : ${{ github.event_name == 'workflow_dispatch' }}
3636 with :
3737 file : ./packages/sdk/typescript/human-protocol-sdk/package.json
3838 field : version
3939 value : ${{ github.event.inputs.release_version }}
4040 - name : Build SDK package
41- run : yarn build
42- working-directory : ./packages/sdk/typescript/human-protocol-sdk
43- - uses : JS-DevTools/npm-publish@v3
44- name : Publish
45- with :
46- package : ./packages/sdk/typescript/human-protocol-sdk/package.json
47- access : public
48- token : ${{ secrets.NPM_TOKEN }}
41+ run : yarn workspace @human-protocol/sdk build
42+ - name : Publish package
43+ run : yarn workspace @human-protocol/sdk npm publish --access public
44+ env :
45+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 3838 ]
3939 },
4040 "dependencies" : {
41- "@human-protocol/core" : " workspace:* " ,
41+ "@human-protocol/core" : " workspace:x " ,
4242 "axios" : " ^1.4.0" ,
4343 "ethers" : " ~6.13.5" ,
4444 "graphql" : " ^16.8.1" ,
Original file line number Diff line number Diff line change @@ -3853,7 +3853,7 @@ __metadata:
38533853 languageName: node
38543854 linkType: hard
38553855
3856- "@human-protocol/core@workspace:*, @human-protocol/core@workspace:packages/core":
3856+ "@human-protocol/core@workspace:*, @human-protocol/core@workspace:packages/core, @human-protocol/core@workspace:x ":
38573857 version: 0.0.0-use.local
38583858 resolution: "@human-protocol/core@workspace:packages/core"
38593859 dependencies:
@@ -4508,7 +4508,7 @@ __metadata:
45084508 version: 0.0.0-use.local
45094509 resolution: "@human-protocol/sdk@workspace:packages/sdk/typescript/human-protocol-sdk"
45104510 dependencies:
4511- "@human-protocol/core": "workspace:* "
4511+ "@human-protocol/core": "workspace:x "
45124512 axios: "npm:^1.4.0"
45134513 eslint: "npm:^8.55.0"
45144514 ethers: "npm:~6.13.5"
You can’t perform that action at this time.
0 commit comments