2022-05-11 02:11:45 +08:00
|
|
|
name: Build
|
|
|
|
on:
|
2022-12-21 19:57:15 +08:00
|
|
|
pull_request: {}
|
2022-05-11 02:11:45 +08:00
|
|
|
push:
|
2023-06-27 02:20:35 +08:00
|
|
|
branches: [livekit, full-mesh]
|
2022-05-11 02:11:45 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Yarn cache
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-11-04 02:43:41 +08:00
|
|
|
cache: "yarn"
|
2022-05-11 02:11:45 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: "yarn install"
|
|
|
|
- name: Build
|
|
|
|
run: "yarn run build"
|
2023-01-03 18:48:48 +08:00
|
|
|
env:
|
|
|
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
|
|
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
|
|
|
SENTRY_URL: ${{ secrets.SENTRY_URL }}
|
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
2023-02-14 20:29:47 +08:00
|
|
|
NODE_OPTIONS: "--max-old-space-size=4096"
|
2022-05-11 02:11:45 +08:00
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: build
|
2022-05-11 02:20:15 +08:00
|
|
|
path: dist
|
2022-05-11 02:11:45 +08:00
|
|
|
# We'll only use this in a triggered job, then we're done with it
|
|
|
|
retention-days: 1
|