Skip to content

Commit

Permalink
Fixes npm publish workflow
Browse files Browse the repository at this point in the history
- Add env vars with fake deployers PKs to npm publish workflows
- Add deployed contract addresses to package
  • Loading branch information
dohaki committed Nov 4, 2021
1 parent 000b9e9 commit e2efed2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/publish-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
env:
PROTOCOL_DEPLOYER_PRIVATE_KEY: 123456789abcdef123456789abcdef123456789abcdef123456789abcdef1234
CC_TOKEN_DEPLOYER_PRIVATE_KEY: 123456789abcdef123456789abcdef123456789abcdef123456789abcdef1234
steps:
- uses: actions/checkout@v2
- name: Set env RELEASE_VERSION
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
env:
PROTOCOL_DEPLOYER_PRIVATE_KEY: 123456789abcdef123456789abcdef123456789abcdef123456789abcdef1234
CC_TOKEN_DEPLOYER_PRIVATE_KEY: 123456789abcdef123456789abcdef123456789abcdef123456789abcdef1234
steps:
- uses: actions/checkout@v2
- name: Set env RELEASE_VERSION
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
"artifacts/contracts/VoucherKernel.sol/VoucherKernel.json",
"abi/contracts/VoucherKernel.sol/VoucherKernel.json",
"artifacts/contracts/interfaces/**/*.json",
"!artifacts/contracts/interfaces/**/*.dbg.json"
"!artifacts/contracts/interfaces/**/*.dbg.json",
"scripts/contracts-demo.json",
"scripts/contracts-dev.json",
"scripts/contracts-prod.json"
],
"scripts": {
"contracts:run": "npm run contracts:clean && npm run contracts:compile && hardhat deploy",
Expand Down

0 comments on commit e2efed2

Please sign in to comment.