Skip to content

Commit

Permalink
Merge pull request #30 from zama-ai/packaging
Browse files Browse the repository at this point in the history
Packaging
  • Loading branch information
jatZama authored Mar 13, 2024
2 parents 3e97eb6 + 15c2fda commit 2bdbeab
Show file tree
Hide file tree
Showing 7 changed files with 897 additions and 10,421 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish fhEVM Contracts release

on:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: cp .env.example .env
- run: pnpm install
- run: pnpm compile
- uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939
with:
token: ${{ secrets.NPM_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/publishprerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish fhEVM Contracts prerelease

on:
release:
types: [prereleased]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: cp .env.example .env
- run: pnpm install
- run: pnpm compile
- uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939
with:
tag: prerelease
token: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ deployments
.pnp.*
coverage.json
package-lock.json
yarn.lock
yarn.lock
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!contracts/**
!package.json
!README.md
!LICENSE
Loading

0 comments on commit 2bdbeab

Please sign in to comment.