Skip to content

Commit

Permalink
Merge pull request #21 from etherisc/feature/npm-dist
Browse files Browse the repository at this point in the history
Publish build artifacts to npm package
  • Loading branch information
doerfli committed Sep 22, 2022
2 parents 853f96f + d1efed7 commit b20b9a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ jobs:
- name: Run solhint linter
run: solhint contracts/**/*.sol

- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: contracts
path: |
build
publish:
name: Publish package to npmjs
Expand All @@ -70,6 +77,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: contracts
path: build

- name: Setup node environment
uses: actions/setup-node@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"url": "git+https://github.com/etherisc/gif-interface.git"
},
"files": [
"contracts/**/*sol"
"contracts/**/*sol",
"build/**/*"
],
"keywords": [
"etherisc",
Expand Down

0 comments on commit b20b9a4

Please sign in to comment.