Skip to content

Commit

Permalink
Merge pull request #1320 from massgov/release/11.0.0
Browse files Browse the repository at this point in the history
Release 11.0.0
  • Loading branch information
clairesunstudio authored Dec 22, 2020
2 parents 6398bac + 7fdef3b commit e649a99
Show file tree
Hide file tree
Showing 185 changed files with 12,067 additions and 2,666 deletions.
85 changes: 69 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ jobs:
- restore_cache:
name: Restore pnpm-lock.yaml
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run: {name: 'Install packages', command: 'node common/scripts/install-run-rush.js install'}
- save_cache:
name: Save NPM cache
key: root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
key: root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
paths:
- common
- packages/assets/node_modules
- packages/react/node_modules
- packages/patternlab/styleguide/node_modules
- packages/site/node_modules
- packages/core/node_modules

patternlab_build:
<<: *patternlab_defaults
Expand All @@ -50,7 +51,7 @@ jobs:
- restore_cache:
name: Restore NPM Cache
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run: { name: 'Build', command: 'cd packages/patternlab/styleguide && node ../../../common/scripts/install-run-rushx.js build'}
- persist_to_workspace:
root: ~/code
Expand Down Expand Up @@ -171,7 +172,7 @@ jobs:
- checkout
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run:
name: Mayflower React Build
command: cd packages/react && node ../../common/scripts/install-run-rushx.js build
Expand Down Expand Up @@ -242,6 +243,44 @@ jobs:
aws cloudfront create-invalidation --distribution-id $AWS_DISTRIBUTION_ID --paths '/react*'
fi
core_build_storybook:
<<: *patternlab_defaults
steps:
- checkout
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run:
name: Mayflower React NPM Package Build
command: cd packages/react && node ../../common/scripts/install-run-rushx.js build
- run:
name: Mayflower Core Linter
command: cd packages/core && node ../../common/scripts/install-run-rushx.js lint
- run:
name: Mayflower Core Storybook Build
command: cd packages/core && node ../../common/scripts/install-run-rushx.js build
- persist_to_workspace:
root: ~/code
paths: ["*"]

core_deploy_tag:
<<: *patternlab_defaults
steps:
- attach_workspace:
at: ~/code
- run: |
# Only sync to S3 for stable tags.
if [[ "$CIRCLE_TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
sudo apt-get update && sudo apt-get -y -qq install awscli
cd packages/core
aws s3 sync storybook-static "s3://mayflower.digital.mass.gov/core/v/$CIRCLE_TAG" --delete
# Use cp instead of sync for root copy. sync lists all keys and is too slow.
aws s3 cp --recursive storybook-static "s3://mayflower.digital.mass.gov/core"
aws configure set preview.cloudfront true
aws cloudfront create-invalidation --distribution-id $AWS_DISTRIBUTION_ID --paths '/core*'
fi
auto_changelog:
<<: *react_defaults
steps:
Expand All @@ -262,7 +301,7 @@ jobs:
- *no_host_check
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run: sudo npm install -g [email protected] @octokit/rest [email protected] [email protected] [email protected]
# Identify the committer i.e. CircleCI deployment bot
- run: git config --global user.email "[email protected]"
Expand All @@ -276,7 +315,7 @@ jobs:
- *no_host_check
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run: sudo npm install -g [email protected] @octokit/rest [email protected] [email protected] [email protected]
# Identify the committer i.e. CircleCI deployment bot
- run: git config --global user.email "[email protected]"
Expand All @@ -290,7 +329,7 @@ jobs:
- checkout
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run: { name: 'Build', command: 'cd packages/assets && node ../../common/scripts/install-run-rushx.js build'}
- run:
name: Mayflower Style Linter
Expand All @@ -303,7 +342,7 @@ jobs:
- *configure_npm
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run:
name: 'Publish mayflower-assets NPM package'
command: |
Expand All @@ -321,7 +360,7 @@ jobs:
- checkout
- restore_cache:
keys:
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-20
- root-npm-v4-{{ checksum "common/config/rush/pnpm-lock.yaml" }}-25
- run: cd packages/react && node ../../common/scripts/install-run-rushx.js build
- run:
name: Validate Package Build
Expand Down Expand Up @@ -368,15 +407,15 @@ workflows:
- patternlab_build:
requires: [build]
filters:
branches: { ignore: /(docs|react\/|site\/).*/ }
branches: { ignore: /(docs|react\/|site\/|core\/).*/ }
- patternlab_deploy_branch:
requires: [patternlab_build]
filters:
branches: { ignore: /(docs|react\/|site\/).*/ }
branches: { ignore: /(docs|react\/|site\/|core\/).*/ }
- patternlab_test:
requires: [patternlab_build]
filters:
branches: { ignore: /(docs|react\/|site\/).*/ }
branches: { ignore: /(docs|react\/|site\/|core\/).*/ }
# react
- react_build_storybook:
requires: [build]
Expand All @@ -385,23 +424,27 @@ workflows:
- react_test:
requires: [react_build_storybook]
filters:
branches: { ignore: /(docs|patternlab\/|site\/).*/ }
branches: { ignore: /(docs|patternlab\/|site\/|core\/).*/ }
# site
- site_build:
requires: [react_build_storybook]
filters:
branches: { ignore: /(docs|patternlab\/|react\/).*/ }
branches: { ignore: /(docs|patternlab\/|react\/|core\/).*/ }
# core
- core_build_storybook:
requires: [build]
filters:
branches: { ignore: /(docs|patternlab\/|site\/).*/ }

# Release branch automation every Monday at 2:00 p.m. ET "00 18 * * 1"
# Release branch automation every Monday at 3:45 p.m. ET "45 19 * * 1" (temp)
release:
jobs:
- build
- release_branch:
requires: [build]
triggers:
- schedule:
cron: "45 19 * * 1"
cron: "00 18 * * 1"
filters:
branches:
only:
Expand Down Expand Up @@ -445,6 +488,7 @@ workflows:
branches: { ignore: /.*/ }
tags: { only: /.*/ }
- react_build_storybook:
requires: [build]
filters:
branches: { ignore: /.*/ }
tags: { only: /.*/ }
Expand All @@ -468,3 +512,12 @@ workflows:
filters:
branches: { ignore: /.*/ }
tags: { only: /.*/ }
- core_build_storybook:
requires: [build]
filters:
branches: { ignore: /(docs|patternlab\/|site\/).*/ }
- core_deploy_tag:
requires: [core_build_storybook]
filters:
branches: { ignore: /.*/ }
tags: { only: /.*/ }
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# Mayflower Release Notes
All notable changes to this project will be documented in this file.

## 11.0.0 (12/21/2020)
### Added
- (Core) [All] DP-19530: Added the new MVP core storybook documentation site. (#1271)
- (React) [HeaderHamburger, HamburgerNav, HeaderNav, NavContainer] DP-20321: Addded HeaderHamburger, HamburgerNav, HeaderNav, NavContainer react components. (#1282)
- (React) [useEventListener, useScript, useWindowWidth] DP-20321: Addded react hooks useEventListener, useScript, useWindowWidth. (#1282)
- (Patternlab) [Figure] DP-20659: Set up a template for Caspio as a figure variation template. (#1298)

### Changed
- (Assets) [Header] DP-20321: Refactored header.scss build assets to use header mixed styles. (#1282)
- (Assets) [03-organisms/_header-hamburger.scss] DP-20321: Modified menu-overlay to work with top set to zero. Updated ma__header__hamburger__nav z-index. (#1282)
- (React) [Header] DP-20321: Refactored Header to support the full functionality of Header Mixed from patternlab. (#1282)
- (Patternlab) [Figure] DP-20659: Adjust the optional title and its visibility in all figure variation templates. (#1298)

### Fixed
- (React, Patternlab, Assets) [FooterLinks] Sync FooterLinks markup between React and Patternlab, consolidate styles in assets. (#1317)
- (React) [Dependencies] Downgrade react storybook addon versions to fix `.mdx` markdown styling. (#1316)
- (Assets) [Fonts] Fix Noto Sans loading on IE. (#1311)

## 10.4.1 (12/15/2020)
### Fixed
- (Assets) [Fonts] DP-20682: Significantly reduced Noto Sans Latin variable font `.woff` file sizes, from ~900k to ~60k. (#1302)
Expand Down
32 changes: 32 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
* "rush my-global-command --help".
*/
"commands": [
{
"commandKind": "global",
"name": "build:assets",
"summary": "Runs 'rushx build' for the assets package.",
"safeForSimultaneousRushProcesses": true,
"allowWarningsInSuccessfulBuild": true,
"shellCommand": "cd packages/assets && rushx build"
},
{
"commandKind": "global",
"name": "start:react",
Expand All @@ -19,6 +27,14 @@
"allowWarningsInSuccessfulBuild": true,
"shellCommand": "cd packages/react && rushx start"
},
{
"commandKind": "global",
"name": "build:react",
"summary": "Runs 'rushx build' for the react package.",
"safeForSimultaneousRushProcesses": true,
"allowWarningsInSuccessfulBuild": true,
"shellCommand": "cd packages/react && rushx build"
},
{
"commandKind": "global",
"name": "start:patternlab",
Expand All @@ -35,6 +51,22 @@
"allowWarningsInSuccessfulBuild": true,
"shellCommand": "cd packages/site && rushx start"
},
{
"commandKind": "global",
"name": "start:core",
"summary": "Runs 'rushx start' for the core storybook site package.",
"safeForSimultaneousRushProcesses": true,
"allowWarningsInSuccessfulBuild": true,
"shellCommand": "cd packages/core && rushx start"
},
{
"commandKind": "global",
"name": "build:core",
"summary": "Runs 'rushx build' for the core storybook site package.",
"safeForSimultaneousRushProcesses": true,
"allowWarningsInSuccessfulBuild": true,
"shellCommand": "cd packages/core && rushx build"
},
{
"commandKind": "global",
"name": "backstop:react",
Expand Down
Loading

0 comments on commit e649a99

Please sign in to comment.