Skip to content

Commit 49886c1

Browse files
authored
Merge pull request #268 from bugout-dev/engine-sdk-publish
Engine sdk publish
2 parents cfde147 + 5116d97 commit 49886c1

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

‎.github/workflows/sdk.release.yml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release Engine SDK to NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- 'sdk/v*'
7+
8+
defaults:
9+
run:
10+
working-directory: sdk
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js 15.x
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: '15.x'
21+
registry-url: 'https://registry.npmjs.org'
22+
- name: Build and install dependencies
23+
run: |
24+
npm install
25+
npm run build
26+
- name: Publish package
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
29+
run: npm publish --access public

‎sdk/src/example.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ async function main() {
3939
craftingContract.connect(signer)
4040

4141
const emptyBottle: CraftingItem = {
42-
tokenAddrress: "0x0000000000000000000000000000000000000000",
42+
tokenAddress: "0x0000000000000000000000000000000000000000",
4343
amount: "1",
4444
tokenId: "1",
4545
}
4646

4747
const milk: CraftingItem = {
48-
tokenAddrress: "0x0000000000000000000000000000000000000000",
48+
tokenAddress: "0x0000000000000000000000000000000000000000",
4949
amount: "100000000000000000000", // 100 * 10^18, 100 unim
5050
}
5151

5252
const fullBottle: CraftingItem = {
53-
tokenAddrress: "0x0000000000000000000000000000000000000000",
53+
tokenAddress: "0x0000000000000000000000000000000000000000",
5454
amount: "1",
5555
tokenId: "2",
5656
}

0 commit comments

Comments
 (0)