File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Expand file tree Collapse file tree 2 files changed +11
-15
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 }}
You can’t perform that action at this time.
0 commit comments