Skip to content

fix: Charts on dark mode #67

fix: Charts on dark mode

fix: Charts on dark mode #67

Workflow file for this run

name: Liman UI Build Pipeline
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install checkout
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Cache next build
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: sudo apt install jq -y
- name: Build Next application
run: |
npm ci --ignore-scripts
npm run build
[ "$GITHUB_REF" == "refs/heads/master" ] && PRERELEASE=false || PRERELEASE=true
echo "PRERELEASE=$(echo $PRERELEASE)" >> $GITHUB_ENV
echo "UI_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Move Next standalone files
run: |
cp -r public/ .next/standalone/
cp -r .next/static .next/standalone/.next/
- name: Create zip
run: |
cd .next/standalone
zip -r /tmp/ui-${{ env.UI_BRANCH }}-${{ github.run_number }}.zip .
- name: Release 🚀
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
files: /tmp/ui-${{ env.UI_BRANCH }}-${{ github.run_number }}.zip
name: "Release ${{ env.UI_BRANCH }} ${{ github.run_number }}"
tag_name: "release.${{ env.UI_BRANCH }}.${{ github.run_number }}"
prerelease: ${{ env.PRERELEASE }}