Initial commit
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<!-- Featured screenshots/recordings -->
|
||||
|
||||
<!-- Overall purpose of the PR -->
|
||||
|
||||
---
|
||||
|
||||
<!-- Reorder/delete the following sections accordingly: -->
|
||||
|
||||
## Views
|
||||
|
||||
* New: `<ViewComponentName>`
|
||||
* <!-- explain features of new view component -->
|
||||
*
|
||||
|
||||
* `<ViewComponentName>`
|
||||
* <!-- explain changes to existing view component -->
|
||||
* New: ``
|
||||
* Rename: `` → ``
|
||||
*
|
||||
|
||||
## Components
|
||||
|
||||
* New: `<ComponentName>`
|
||||
* <!-- explain features of new design system component (props, CSS params, style variants, etc.) -->
|
||||
*
|
||||
|
||||
* `<ComponentName>`
|
||||
* <!-- explain changes to existing design system component (props, CSS params, style variants, etc.) -->
|
||||
* New: ``
|
||||
* Rename: `` → ``
|
||||
*
|
||||
|
||||
## Styles/Mixins
|
||||
|
||||
* `styles/_____`
|
||||
* <!-- explain changes to CSS styles/mixins -->
|
||||
* New: ``
|
||||
* Rename: `` → ``
|
||||
*
|
||||
|
||||
## Constants/Types
|
||||
|
||||
* `constants/_____`
|
||||
* <!-- explain changes to constants/types -->
|
||||
*
|
||||
|
||||
## Functions
|
||||
|
||||
* `lib/_____`
|
||||
* <!-- explain changes to library functions/methods -->
|
||||
*
|
||||
|
||||
## Hooks
|
||||
|
||||
* `hooks/_____`
|
||||
* <!-- explain changes to React hooks -->
|
||||
*
|
||||
|
||||
## State
|
||||
|
||||
* `state/_____`
|
||||
* <!-- explain changes to Redux logic -->
|
||||
*
|
||||
|
||||
## Packages
|
||||
|
||||
* `package-name`
|
||||
* <!-- explain changes to packages -->
|
||||
* updated: v__ -> v__
|
||||
|
||||
## Workflows
|
||||
|
||||
* `workflow-name.yml`
|
||||
* <!-- explain changes to workflows in GitHub Actions -->
|
||||
*
|
||||
|
||||
---
|
||||
|
||||
<!-- Additional screenshots/recordings, before/after comparisons, testing instructions etc. -->
|
||||
@@ -0,0 +1,41 @@
|
||||
name: Deploy to v4.stage.dydx.exchange
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up pnpm
|
||||
uses: dydxprotocol/setup-pnpm@v1
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
registry-url: https://registry.npmjs.org/
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
pnpm install --loglevel warn
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=4096'
|
||||
run: |
|
||||
pnpm run build --mode staging
|
||||
|
||||
- name: Upload to IPFS via web3.storage
|
||||
uses: dydxprotocol/add-to-web3@v1
|
||||
id: web3storage
|
||||
with:
|
||||
web3_token: ${{ secrets.WEB3_STORAGE_TOKEN }}
|
||||
path_to_add: 'dist'
|
||||
@@ -0,0 +1,55 @@
|
||||
name: Deploy to v4.testnet.dydx.exchange
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up pnpm
|
||||
uses: dydxprotocol/setup-pnpm@v1
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
registry-url: https://registry.npmjs.org/
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
pnpm install --loglevel warn
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=4096'
|
||||
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }}
|
||||
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }}
|
||||
STATUS_PAGE_SCRIPT_URI: ${{ secrets.STATUS_PAGE_SCRIPT_URI }}
|
||||
run: |
|
||||
pnpm run build
|
||||
pnpm run build:inject-amplitude
|
||||
pnpm run build:inject-bugsnag
|
||||
pnpm run build:inject-statuspage
|
||||
|
||||
- name: Upload to IPFS via web3.storage
|
||||
uses: dydxprotocol/add-to-web3@v1
|
||||
id: web3storage
|
||||
with:
|
||||
web3_token: ${{ secrets.WEB3_STORAGE_TOKEN }}
|
||||
path_to_add: 'dist'
|
||||
|
||||
- name: Update IPNS record via web3name
|
||||
id: web3name
|
||||
env:
|
||||
WEB3NAME_SIGNING_KEY: ${{ secrets.WEB3NAME_SIGNING_KEY }}
|
||||
run: |
|
||||
echo $WEB3NAME_SIGNING_KEY | base64 -d > .web3name.key
|
||||
pnpm run deploy:update-ipns --cid=${{ steps.web3storage.outputs.cid }} --key=.web3name.key
|
||||
Reference in New Issue
Block a user