Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/cd-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
file: ./packages/core/package.json
field: version
value: ${{ github.event.release.tag_name }}
- uses: JS-DevTools/npm-publish@v3
with:
package: ./packages/core/package.json
access: public
token: ${{ secrets.NPM_TOKEN }}
- name: Publish package
run: yarn workspace @human-protocol/core npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 7 additions & 10 deletions .github/workflows/cd-node-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,23 @@ jobs:
run: yarn install --immutable
- name: Build core package
run: yarn build:core
- name: Change Node.js SDK version
- name: Change Node.js SDK version from release tag
uses: jossef/action-set-json-field@v2
if: ${{ github.event_name != 'workflow_dispatch' }}
with:
file: ./packages/sdk/typescript/human-protocol-sdk/package.json
field: version
value: ${{ github.event.release.tag_name }}
- name: Change Node.js SDK version
- name: Change Node.js SDK version from workflow input
uses: jossef/action-set-json-field@v2
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
file: ./packages/sdk/typescript/human-protocol-sdk/package.json
field: version
value: ${{ github.event.inputs.release_version }}
- name: Build SDK package
run: yarn build
working-directory: ./packages/sdk/typescript/human-protocol-sdk
- uses: JS-DevTools/npm-publish@v3
name: Publish
with:
package: ./packages/sdk/typescript/human-protocol-sdk/package.json
access: public
token: ${{ secrets.NPM_TOKEN }}
run: yarn workspace @human-protocol/sdk build
- name: Publish package
run: yarn workspace @human-protocol/sdk npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion packages/sdk/typescript/human-protocol-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
]
},
"dependencies": {
"@human-protocol/core": "workspace:*",
"@human-protocol/core": "workspace:x",
"axios": "^1.4.0",
"ethers": "~6.13.5",
"graphql": "^16.8.1",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3860,7 +3860,7 @@ __metadata:
languageName: node
linkType: hard

"@human-protocol/core@workspace:*, @human-protocol/core@workspace:packages/core":
"@human-protocol/core@workspace:*, @human-protocol/core@workspace:packages/core, @human-protocol/core@workspace:x":
version: 0.0.0-use.local
resolution: "@human-protocol/core@workspace:packages/core"
dependencies:
Expand Down Expand Up @@ -4515,7 +4515,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@human-protocol/sdk@workspace:packages/sdk/typescript/human-protocol-sdk"
dependencies:
"@human-protocol/core": "workspace:*"
"@human-protocol/core": "workspace:x"
axios: "npm:^1.4.0"
eslint: "npm:^8.55.0"
ethers: "npm:~6.13.5"
Expand Down
Loading