feat: update orderbook open api (#222) #865
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
name: Build | |
# Run on pushes to main or PRs | |
on: | |
# Pull request hook without any config. Launches for every pull request | |
pull_request: | |
# Launches for pushes to main or dev | |
push: | |
branches: | |
- main | |
# Launches build when release is published | |
release: | |
types: [published] | |
env: | |
NODE_VERSION: lts/gallium | |
jobs: | |
build: | |
name: Build Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Remove broken apt repos [Ubuntu] | |
if: ${{ matrix.os }} == 'ubuntu-latest' | |
run: | | |
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- run: | | |
# Due to some dependencies yarn may randomly throw an error about invalid cache | |
# This approach is taken from https://github.com/yarnpkg/yarn/issues/7212#issuecomment-506155894 to fix the issue | |
# Another approach is to install with flag --network-concurrency 1, but this will make the installation pretty slow (default value is 8) | |
mkdir .yarncache | |
yarn install --cache-folder ./.yarncache --frozen-lockfile | |
rm -rf .yarncache | |
yarn cache clean | |
- name: Build app | |
run: yarn build |