chore(Security): bump downshift from 6.1.12 to 8.2.3 #5498
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: 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 |