Skip to content

build: amend tsup configuration for smaller builds (~22%) #404

build: amend tsup configuration for smaller builds (~22%)

build: amend tsup configuration for smaller builds (~22%) #404

Workflow file for this run

name: CI
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Cache turbo build setup
uses: actions/cache@v3
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Packages
run: npm ci
- name: Build packages
run: npm run build
- name: Check Package Versions are in Sync
run: npm run validate-packages-sync
- name: Validate Current Configuration (deneb-config.json)
run: npm run validate-config-for-commit
- name: Linting Checks
run: npm run eslint
- name: Prettier Checks
run: npm run prettier-check
- name: Tests
run: npm run test
- name: Confirm pbiviz package (AppSource Version)
run: npm run package
# When pushing to 'main', this will invoke an alpha build
- name: Alpha Channel Build Check
if: github.ref == 'refs/heads/main'
run: |
echo "alpha_build=true" >> $GITHUB_ENV
- name: 'Alpha Channel Build'
if: env.alpha_build == 'true'
run: npm run package-alpha
- name: 'Publish/Update Alpha Channel Pre-Release'
if: env.alpha_build == 'true'
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
automatic_release_tag: 'alpha'
prerelease: true
title: 'Alpha Channel: Latest Build'
files: |
dist/ALPHA*.pbiviz