Skip to content

Commit

Permalink
contract publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhv12 committed Apr 19, 2024
1 parent e88ed83 commit 773c702
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main
- dev
paths:
- 'web-app/*'

jobs:
build:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches:
- main
- dev
paths:
- 'contract/*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: 'contract/'
- uses: actions/setup-node@v3
with:
node-version: "20"
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
registry: "https://registry.npmjs.org"
8 changes: 7 additions & 1 deletion contract/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"name": "hardhat-javascript-starter",
"name": "jbhv12-web3-testimonials",
"version": "0.0.1",
"description": "Smart contract for web3 testimonials!",
"repository": {
"type": "git",
"url": "https://github.com/jbhv12/web3-testimonials.git"
},
"scripts": {
"build": "npx thirdweb@latest detect && npx hardhat flatten > contracts/Flatten.sol",
"deploy": "npx thirdweb@latest deploy -f contracts/Flatten.sol -cn MyApp",
Expand Down

0 comments on commit 773c702

Please sign in to comment.