Skip to content

Commit

Permalink
Disable part of workflow to quickly verify Notify CI... step
Browse files Browse the repository at this point in the history
Change is only temporary, it should be reverted before merge to `main`.
  • Loading branch information
michalinacienciala committed Jul 14, 2022
1 parent 65184cf commit f9d055b
Showing 1 changed file with 38 additions and 37 deletions.
75 changes: 38 additions & 37 deletions .github/workflows/contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,43 +104,44 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: "14.x"
cache: "yarn"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Resolve latest contracts
run: yarn upgrade @keep-network/[email protected]

- name: Configure tenderly
env:
TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }}
run: ./config_tenderly.sh

- name: Deploy contracts
env:
CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}
CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
run: yarn deploy --network ${{ github.event.inputs.environment }}

- name: Bump up package version
id: npm-version-bump
uses: keep-network/npm-version-bump@v2
with:
environment: ${{ github.event.inputs.environment }}
branch: ${{ github.ref }}
commit: ${{ github.sha }}

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# TODO: remove `--dry-run` before merge to main
run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run
# TODO: uncomment below block of code before merge to main
# - uses: actions/setup-node@v2
# with:
# node-version: "14.x"
# cache: "yarn"
# registry-url: "https://registry.npmjs.org"

# - name: Install dependencies
# run: yarn install --frozen-lockfile

# - name: Resolve latest contracts
# run: yarn upgrade @keep-network/[email protected]

# - name: Configure tenderly
# env:
# TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }}
# run: ./config_tenderly.sh

# - name: Deploy contracts
# env:
# CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}
# CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
# KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
# run: yarn deploy --network ${{ github.event.inputs.environment }}

# - name: Bump up package version
# id: npm-version-bump
# uses: keep-network/npm-version-bump@v2
# with:
# environment: ${{ github.event.inputs.environment }}
# branch: ${{ github.ref }}
# commit: ${{ github.sha }}

# - name: Publish to npm
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# # TODO: remove `--dry-run` before merge to main
# run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run

# TODO: restore commented out `uses` config before merge to `main``
- name: Notify CI about completion of the workflow
Expand Down

0 comments on commit f9d055b

Please sign in to comment.