Skip to content

Commit

Permalink
add setup, remove postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuong Truong committed Sep 28, 2023
1 parent 7c76021 commit d6b5170
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 15,893 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
- name: 'Build docker image'
run: 'npm run build:docker'

- name: 'Install the dependencies'
run: 'npm install'
- name: 'Install the dependencies and compile smart contracts'
run: 'npm run setup'

- name: 'Test smart contracts'
run: 'npm run test'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@waveshq'
- name: Install dependencies
run: npm ci
- name: Install dependencies and compile smart contracts
run: npm run setup
- name: Build the package
run: npm run build
- run: npm config set "//registry.npmjs.org/:_authToken" "\${NODE_AUTH_TOKEN}" --location=project
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ WORKDIR /staterelayer
COPY package.json hardhat.config.ts .solhint.json tsconfig.json tsconfig.build.json ./
COPY contracts ./contracts

RUN npm install
RUN npm run setup

CMD npx hardhat --config ./hardhat.config.ts node
Loading

0 comments on commit d6b5170

Please sign in to comment.