Skip to content

Commit

Permalink
Added pre-publish script, updated stable release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanjain28 committed Jul 14, 2023
1 parent da30b4d commit 3c56f8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/npm-publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ jobs:

- name: Build
run: yarn run build
env:
AVOCADO_CHAIN_ID: 63400
AVOCADO_RPC: https://rpc.avocado.instad.app
AVOCADO_FORWARDER_PROXY_ADDRESS: "0x8CDaAC0371a443985c6Faf07938dDAa7A5818674"

- name: Publish Dev Release
uses: JS-DevTools/npm-publish@v2
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Dependencies
run: yarn --frozen-lockfile

- name: Build
run: yarn run build

- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"generate:contracts": "rimraf src/contracts && typechain --target=ethers-v5 'abi/*.json' --out-dir 'src/contracts'",
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"prepublishOnly": "yarn && npm run build"
},
"dependencies": {
"@ethersproject/abi": "^5.7.0",
Expand Down

0 comments on commit 3c56f8c

Please sign in to comment.