Skip to content

Commit

Permalink
Merge pull request #67 from SecureSECODAO/dev
Browse files Browse the repository at this point in the history
Release v.0.2.0
  • Loading branch information
Plopmenz authored Jun 12, 2023
2 parents 03b2312 + b6071c7 commit 9fdee71
Show file tree
Hide file tree
Showing 219 changed files with 18,695 additions and 12,472 deletions.
4 changes: 1 addition & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ETHERSCAN_API_KEY="your-etherscan-api-key"
POLYGONSCAN_API_KEY="your-polygonscan-api-key"
MUMBAI_API_KEY="your-alchemy-mumbai-api-key"
MUMBAI_PRIVATE_KEY="0000000000000000000000000000000000000000000000000000000000000000"
IPFS_PINATA_TOKEN="0000000000000000000000000000000000000000000000000000000000000000"
MUMBAI_PRIVATE_KEY="0000000000000000000000000000000000000000000000000000000000000000"
65 changes: 65 additions & 0 deletions .github/workflows/sdk-publish-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Diamond Governance SDK publish

on:
release:
types: [published]

defaults:
run:
working-directory: ./

env:
NODE_VERSION: 18.x
unit-tests: ${{ github.event.inputs.js || true }}

jobs:
install-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Cache node modules
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-
unit-tests:
runs-on: ubuntu-latest
needs: install-dependencies
steps:
- uses: actions/checkout@v3
- name: Restore cache
uses: actions/cache@v3
id: restore-node_modules
with:
path: |
**/node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
if: steps.restore-node_modules.outputs.cache-hit != 'true'
run: npm install
- name: Install typescript
run: npm i typescript -g
- name: Generate sdk
run: npm run generate-sdk
- name: Enter sdk directory
run: cd sdk
- name: Increment npm package version
run: npm version minor
- name: Compile package
run: tsc --declaration
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


2 changes: 0 additions & 2 deletions .github/workflows/unit-test-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
default: true
required: false

push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,7 @@ artifacts/
cache/
typechain-types/
.DS_Store
generated/abis.json
generated/client.ts
generated/functionSelectors.json
generated/variableSelectors.json
Loading

0 comments on commit 9fdee71

Please sign in to comment.