Skip to content

chore(CODEOWNERS): Update maintainers #5499

chore(CODEOWNERS): Update maintainers

chore(CODEOWNERS): Update maintainers #5499

Workflow file for this run

name: NPM Smoke Test
on:
push:
branches:
- master
pull_request:
jobs:
NPM_smoketest:
runs-on: ubuntu-latest
steps:
- name: Git clone repository
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/prepare-environment
- name: Build design-tokens
run: yarn --cwd packages/design-tokens build
- name: Build icon-library
run: yarn --cwd packages/icon-library build
- name: Build react-component-library
run: yarn --cwd packages/react-component-library build
- name: Update CRA template to use local packages
run: |
TEMPLATE=packages/cra-template-defencedigital/template.json
PACKAGES=(
design-tokens
fonts
icon-library
react-component-library
)
for i in "${PACKAGES[@]}";
do
contents="$(jq '.package.dependencies."@defencedigital/'$i'" = "file:'$GITHUB_WORKSPACE'/packages/'$i'"' $TEMPLATE)" \
&& echo "${contents}" > $TEMPLATE
done
cat $TEMPLATE
- name: Create boilerplate app
run: |
if [ -d "$RUNNER_TEMP/my-app" ]; then rm -Rf $RUNNER_TEMP/my-app ; fi
npx create-react-app $RUNNER_TEMP/my-app --template file:../${{ github.event.repository.name }}/packages/cra-template-defencedigital
- name: Build boilerlate app
run: |
cd $RUNNER_TEMP/my-app
grep version node_modules/@defencedigital/**/package.json
yarn build
- name: Lint boilerlate app
run: |
cd $RUNNER_TEMP/my-app
yarn lint