Skip to content

[D2AI] Build Update #4588

[D2AI] Build Update

[D2AI] Build Update #4588

Workflow file for this run

name: PR Build
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- 'docs/**'
# Ensures that only one deploy task per branch/environment will run at a time.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: Install
run: yarn install --frozen-lockfile --prefer-offline
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
- name: set beta
run: |
echo "build_level='beta'" >> $GITHUB_ENV
- name: Bump release version (beta)
run: |
echo "VERSION=${{ steps.package-version.outputs.current-version }}.${{ github.run_number }}" >> $GITHUB_ENV
- name: Build beta
run: yarn build:beta
env:
NODE_OPTIONS: "--max_old_space_size=8192"
PR_BUILD: true
- name: Check for updates to build pipeline
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
build-pipeline:
- package.json
- yarn.lock
- config/webpack.ts
- name: Send webpack stats to RelativeCI
if: ${{ steps.filter.outputs.build-pipeline == 'true' }}
uses: relative-ci/agent-action@v2
with:
webpackStatsFile: ./webpack-stats.json
key: ${{ secrets.RELATIVE_CI_KEY }}
token: ${{ secrets.GITHUB_TOKEN }}