Skip to content

Commit

Permalink
Merge pull request #268 from bugout-dev/engine-sdk-publish
Browse files Browse the repository at this point in the history
Engine sdk publish
  • Loading branch information
kompotkot authored Feb 20, 2023
2 parents cfde147 + 5116d97 commit 49886c1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sdk.release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Engine SDK to NPM

on:
push:
tags:
- 'sdk/v*'

defaults:
run:
working-directory: sdk

jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js 15.x
uses: actions/setup-node@v2
with:
node-version: '15.x'
registry-url: 'https://registry.npmjs.org'
- name: Build and install dependencies
run: |
npm install
npm run build
- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
run: npm publish --access public
6 changes: 3 additions & 3 deletions sdk/src/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ async function main() {
craftingContract.connect(signer)

const emptyBottle: CraftingItem = {
tokenAddrress: "0x0000000000000000000000000000000000000000",
tokenAddress: "0x0000000000000000000000000000000000000000",
amount: "1",
tokenId: "1",
}

const milk: CraftingItem = {
tokenAddrress: "0x0000000000000000000000000000000000000000",
tokenAddress: "0x0000000000000000000000000000000000000000",
amount: "100000000000000000000", // 100 * 10^18, 100 unim
}

const fullBottle: CraftingItem = {
tokenAddrress: "0x0000000000000000000000000000000000000000",
tokenAddress: "0x0000000000000000000000000000000000000000",
amount: "1",
tokenId: "2",
}
Expand Down

0 comments on commit 49886c1

Please sign in to comment.