Bump @adobe/css-tools from 4.0.1 to 4.3.2 #550
Workflow file for this run
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 | |
on: | |
workflow_dispatch: | |
inputs: | |
save-artifact: | |
description: 'Save build as artifact' | |
type: boolean | |
required: false | |
default: false | |
push: | |
pull_request: | |
# Try to avoid having two runs when there's a push within a pull request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
EXTEND_ESLINT: 'true' | |
PUBLIC_URL: ${{ vars.RESOURCES_CDN_URL }} | |
NODE_ENV: ${{ vars.NODE_ENV || 'production' }} | |
REACT_APP_VERIDA_ONE_CONTEXT_NAME: ${{ vars.REACT_APP_VERIDA_ONE_CONTEXT_NAME }} | |
REACT_APP_VERIDA_ENV: ${{ vars.VERIDA_NETWORK }} | |
REACT_APP_PROFILE_SCHEMA_URL: ${{ vars.REACT_APP_PROFILE_SCHEMA_URL }} | |
REACT_APP_WALLET_PROVIDER_API_BASE_URL: ${{ vars.REACT_APP_WALLET_PROVIDER_API_BASE_URL }} | |
REACT_APP_ENABLE_DEV_FEATURES: ${{ vars.REACT_APP_ENABLE_DEV_FEATURES }} | |
REACT_APP_ENABLE_MOCK_DATA: ${{ vars.REACT_APP_ENABLE_MOCK_DATA }} | |
steps: | |
- name: Environment variables | |
run: | | |
echo "NODE_ENV=$NODE_ENV" | |
echo "REACT_APP_VERIDA_ONE_CONTEXT_NAME=$REACT_APP_VERIDA_ONE_CONTEXT_NAME" | |
echo "REACT_APP_VERIDA_ENV=$REACT_APP_VERIDA_ENV" | |
echo "REACT_APP_PROFILE_SCHEMA_URL=$REACT_APP_PROFILE_SCHEMA_URL" | |
echo "REACT_APP_WALLET_PROVIDER_API_BASE_URL=$REACT_APP_WALLET_PROVIDER_API_BASE_URL" | |
echo "REACT_APP_ENABLE_DEV_FEATURES=$REACT_APP_ENABLE_DEV_FEATURES" | |
echo "REACT_APP_ENABLE_MOCK_DATA=$REACT_APP_ENABLE_MOCK_DATA" | |
echo "PUBLIC_URL=$PUBLIC_URL" | |
- name: Checkout repository | |
uses: actions/checkout@v2.5.0 | |
- name: Define node version | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV | |
- name: Set up node | |
uses: actions/setup-node@v3.5.1 | |
with: | |
node-version: '${{ env.NODE_VERSION }}' | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Test frontend | |
run: yarn run test | |
- name: Build frontend | |
run: yarn run build | |
- name: Upload build artifacts | |
if: ${{ inputs.save-artifact }} | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: build | |
path: build |