Skip to content

Commit

Permalink
export
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 4, 2024
1 parent 8413e24 commit ff9cd26
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 49 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,17 @@ jobs:
- name: Build
run: yarn build

- name: List
- name: Determine NPM Tag
id: determine-npm-tag
run: |
ls -la
cat build/Gateway.compiled.json
# - name: Determine NPM Tag
# id: determine-npm-tag
# run: |
# VERSION_TAG="${{ github.event.inputs.version }}"
# if [[ $VERSION_TAG == *"-"* ]]; then
# echo "NPM_TAG=${VERSION_TAG#*-}" >> $GITHUB_ENV
# else
# echo "NPM_TAG=latest" >> $GITHUB_ENV
# fi

# - name: Publish to NPM
# run: yarn publish --new-version ${{ github.event.inputs.version }} --tag ${{ env.NPM_TAG }} --no-git-tag-version
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION_TAG="${{ github.event.inputs.version }}"
if [[ $VERSION_TAG == *"-"* ]]; then
echo "NPM_TAG=${VERSION_TAG#*-}" >> $GITHUB_ENV
else
echo "NPM_TAG=latest" >> $GITHUB_ENV
fi
- name: Publish to NPM
run: yarn publish --new-version ${{ github.event.inputs.version }} --tag ${{ env.NPM_TAG }} --no-git-tag-version
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
65 changes: 35 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
{
"name": "@zetachain/protocol-contracts-ton",
"version": "0.0.0-set-on-publish",
"author": "zetachain",
"license": "MIT",
"scripts": {
"start": "blueprint run",
"build": "blueprint build",
"prettier": "prettier -c .",
"test": "jest --verbose"
},
"devDependencies": {
"@ton/blueprint": "^0.24.0",
"@ton/core": "~0",
"@ton/crypto": "^3.2.0",
"@ton/sandbox": "^0.20.0",
"@ton/test-utils": "^0.4.2",
"@ton/ton": "^15.1.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.10",
"jest": "^29.7.0",
"prettier": "^3.3.2",
"ts-jest": "^29.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
},
"dependencies": {
"ethers": "^6.13.2"
},
"packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
}
"name": "@zetachain/protocol-contracts-ton",
"version": "0.0.0-set-on-publish",
"author": "zetachain",
"license": "MIT",
"scripts": {
"start": "blueprint run",
"build": "blueprint build",
"prettier": "prettier -c .",
"test": "jest --verbose"
},
"main": "dist/index.js",
"files": [
"dist",
"build"
],
"devDependencies": {
"@ton/blueprint": "^0.24.0",
"@ton/core": "~0",
"@ton/crypto": "^3.2.0",
"@ton/sandbox": "^0.20.0",
"@ton/test-utils": "^0.4.2",
"@ton/ton": "^15.1.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.10",
"jest": "^29.7.0",
"prettier": "^3.3.2",
"ts-jest": "^29.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
},
"dependencies": {
"ethers": "^6.13.2"
},
"packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
},
"include": ["wrappers/**/*"]
}
1 change: 1 addition & 0 deletions wrappers/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Gateway';

0 comments on commit ff9cd26

Please sign in to comment.