-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from SecureSECODAO/dev
Release v.0.2.0
- Loading branch information
Showing
219 changed files
with
18,695 additions
and
12,472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.