From 0925d79c66c09269dbb19fb7ba4055b60efff000 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 19 Jul 2017 14:41:58 -0700 Subject: [PATCH 01/27] Publish - primer-alerts@1.2.0 - primer-avatars@1.1.0 - primer-base@1.2.0 - primer-blankslate@1.1.0 - primer-box@2.2.0 - primer-breadcrumb@1.1.0 - primer-buttons@2.1.0 - primer-cards@0.2.0 - primer-core@6.1.0 - primer-css@9.1.0 - primer-forms@1.1.0 - primer-labels@1.2.0 - primer-layout@1.1.0 - primer-markdown@3.4.0 - primer-marketing-support@1.1.0 - primer-marketing-type@1.1.0 - primer-marketing-utilities@1.1.0 - primer-marketing@5.1.0 - primer-navigation@1.1.0 - primer-page-headers@1.1.0 - primer-page-sections@1.1.0 - primer-product@5.1.0 - primer-support@4.1.0 - primer-table-object@1.1.0 - primer-tables@1.1.0 - primer-tooltips@1.1.0 - primer-truncate@1.1.0 - primer-utilities@4.4.0 --- modules/primer-alerts/package.json | 4 +- modules/primer-avatars/package.json | 4 +- modules/primer-base/package.json | 4 +- modules/primer-blankslate/package.json | 4 +- modules/primer-box/package.json | 4 +- modules/primer-breadcrumb/package.json | 6 +- modules/primer-buttons/package.json | 4 +- modules/primer-cards/package.json | 6 +- modules/primer-core/package.json | 24 ++++---- modules/primer-css/package.json | 56 +++++++++---------- modules/primer-forms/package.json | 4 +- modules/primer-labels/package.json | 4 +- modules/primer-layout/package.json | 4 +- modules/primer-markdown/package.json | 4 +- modules/primer-marketing-support/package.json | 2 +- modules/primer-marketing-type/package.json | 6 +- .../primer-marketing-utilities/package.json | 6 +- modules/primer-marketing/package.json | 20 +++---- modules/primer-navigation/package.json | 4 +- modules/primer-page-headers/package.json | 6 +- modules/primer-page-sections/package.json | 6 +- modules/primer-product/package.json | 14 ++--- modules/primer-support/package.json | 2 +- modules/primer-table-object/package.json | 4 +- modules/primer-tables/package.json | 6 +- modules/primer-tooltips/package.json | 4 +- modules/primer-truncate/package.json | 4 +- modules/primer-utilities/package.json | 4 +- 28 files changed, 110 insertions(+), 110 deletions(-) diff --git a/modules/primer-alerts/package.json b/modules/primer-alerts/package.json index da775cd7..0fe74880 100644 --- a/modules/primer-alerts/package.json +++ b/modules/primer-alerts/package.json @@ -1,5 +1,5 @@ { - "version": "1.1.8", + "version": "1.2.0", "name": "primer-alerts", "description": "Flash messages, or alerts, inform users of successful or pending actions.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-avatars/package.json b/modules/primer-avatars/package.json index 83160a94..98338162 100644 --- a/modules/primer-avatars/package.json +++ b/modules/primer-avatars/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-avatars", "description": "Basic styles for user profile avatars.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-base/package.json b/modules/primer-base/package.json index cf983168..7dcb6362 100644 --- a/modules/primer-base/package.json +++ b/modules/primer-base/package.json @@ -1,5 +1,5 @@ { - "version": "1.1.5", + "version": "1.2.0", "name": "primer-base", "description": "CSS to reset the browsers default styles", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-blankslate/package.json b/modules/primer-blankslate/package.json index 7de9b306..48b48401 100644 --- a/modules/primer-blankslate/package.json +++ b/modules/primer-blankslate/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-blankslate", "description": "Blankslates are for when there is a lack of content within a page or section.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-box/package.json b/modules/primer-box/package.json index cb10b240..675446ff 100644 --- a/modules/primer-box/package.json +++ b/modules/primer-box/package.json @@ -1,5 +1,5 @@ { - "version": "2.1.8", + "version": "2.2.0", "name": "primer-box", "description": "A module for creating rounded-corner boxes with options for headers, lists, and footers.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-breadcrumb/package.json b/modules/primer-breadcrumb/package.json index f6a13aea..463c0b5e 100644 --- a/modules/primer-breadcrumb/package.json +++ b/modules/primer-breadcrumb/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-breadcrumb", "description": "Breadcrumb navigation for pages with parents / grandparents.", "homepage": "http://primercss.io/", @@ -23,8 +23,8 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-marketing-support": "^1.0.2", - "primer-support": "^4.0.7" + "primer-marketing-support": "^1.1.0", + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-buttons/package.json b/modules/primer-buttons/package.json index a0ad58bf..67974504 100644 --- a/modules/primer-buttons/package.json +++ b/modules/primer-buttons/package.json @@ -1,5 +1,5 @@ { - "version": "2.0.6", + "version": "2.1.0", "name": "primer-buttons", "description": "A collection of buttons used for primary and secondary actions.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-cards/package.json b/modules/primer-cards/package.json index eab30e6e..c5dbc67f 100644 --- a/modules/primer-cards/package.json +++ b/modules/primer-cards/package.json @@ -1,5 +1,5 @@ { - "version": "0.1.8", + "version": "0.2.0", "name": "primer-cards", "description": "Card-like containers to group semantically related content together on marketing websites at GitHub.", "homepage": "http://primercss.io/", @@ -23,8 +23,8 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-marketing-support": "^1.0.2", - "primer-support": "^4.0.7" + "primer-marketing-support": "^1.1.0", + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-core/package.json b/modules/primer-core/package.json index 151d81be..e1f05d34 100644 --- a/modules/primer-core/package.json +++ b/modules/primer-core/package.json @@ -1,5 +1,5 @@ { - "version": "6.0.0", + "version": "6.1.0", "name": "primer-core", "description": "Primer CSS's core modules", "homepage": "http://primercss.io/", @@ -21,17 +21,17 @@ "test": "npm run build" }, "dependencies": { - "primer-base": "^1.1.5", - "primer-box": "^2.1.8", - "primer-buttons": "^2.0.6", - "primer-forms": "^1.0.13", - "primer-layout": "^1.0.5", - "primer-navigation": "^1.0.6", - "primer-support": "^4.0.7", - "primer-table-object": "^1.0.9", - "primer-tooltips": "^1.0.2", - "primer-truncate": "^1.0.2", - "primer-utilities": "^4.3.5" + "primer-base": "^1.2.0", + "primer-box": "^2.2.0", + "primer-buttons": "^2.1.0", + "primer-forms": "^1.1.0", + "primer-layout": "^1.1.0", + "primer-navigation": "^1.1.0", + "primer-support": "^4.1.0", + "primer-table-object": "^1.1.0", + "primer-tooltips": "^1.1.0", + "primer-truncate": "^1.1.0", + "primer-utilities": "^4.4.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-css/package.json b/modules/primer-css/package.json index 1902331c..3eb536cc 100644 --- a/modules/primer-css/package.json +++ b/modules/primer-css/package.json @@ -1,5 +1,5 @@ { - "version": "9.0.0", + "version": "9.1.0", "name": "primer-css", "description": "Primer is the CSS framework that powers GitHub's front-end design. Primer-css includes 23 packages that are grouped into 3 core meta-packages for easy install. Each package and meta-package is independently versioned and distributed via npm, so it's easy to include all or part of Primer within your own project.", "homepage": "http://primercss.io/", @@ -21,33 +21,33 @@ "test": "npm run build" }, "dependencies": { - "primer-alerts": "^1.1.8", - "primer-avatars": "^1.0.2", - "primer-base": "^1.1.5", - "primer-blankslate": "^1.0.2", - "primer-box": "^2.1.8", - "primer-breadcrumb": "^1.0.2", - "primer-buttons": "^2.0.6", - "primer-cards": "^0.1.8", - "primer-core": "^6.0.0", - "primer-forms": "^1.0.13", - "primer-labels": "^1.1.6", - "primer-layout": "^1.0.5", - "primer-markdown": "^3.3.13", - "primer-marketing": "^5.0.2", - "primer-marketing-support": "^1.0.2", - "primer-marketing-type": "^1.0.2", - "primer-marketing-utilities": "^1.0.2", - "primer-navigation": "^1.0.6", - "primer-page-headers": "^1.0.2", - "primer-page-sections": "^1.0.2", - "primer-product": "^5.0.2", - "primer-support": "^4.0.7", - "primer-table-object": "^1.0.9", - "primer-tables": "^1.0.2", - "primer-tooltips": "^1.0.2", - "primer-truncate": "^1.0.2", - "primer-utilities": "^4.3.5" + "primer-alerts": "^1.2.0", + "primer-avatars": "^1.1.0", + "primer-base": "^1.2.0", + "primer-blankslate": "^1.1.0", + "primer-box": "^2.2.0", + "primer-breadcrumb": "^1.1.0", + "primer-buttons": "^2.1.0", + "primer-cards": "^0.2.0", + "primer-core": "^6.1.0", + "primer-forms": "^1.1.0", + "primer-labels": "^1.2.0", + "primer-layout": "^1.1.0", + "primer-markdown": "^3.4.0", + "primer-marketing": "^5.1.0", + "primer-marketing-support": "^1.1.0", + "primer-marketing-type": "^1.1.0", + "primer-marketing-utilities": "^1.1.0", + "primer-navigation": "^1.1.0", + "primer-page-headers": "^1.1.0", + "primer-page-sections": "^1.1.0", + "primer-product": "^5.1.0", + "primer-support": "^4.1.0", + "primer-table-object": "^1.1.0", + "primer-tables": "^1.1.0", + "primer-tooltips": "^1.1.0", + "primer-truncate": "^1.1.0", + "primer-utilities": "^4.4.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-forms/package.json b/modules/primer-forms/package.json index 82c520bf..5851f909 100644 --- a/modules/primer-forms/package.json +++ b/modules/primer-forms/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.13", + "version": "1.1.0", "name": "primer-forms", "description": "Style individual form controls and utilize common layouts.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-labels/package.json b/modules/primer-labels/package.json index 2c967218..b8cd4668 100644 --- a/modules/primer-labels/package.json +++ b/modules/primer-labels/package.json @@ -1,5 +1,5 @@ { - "version": "1.1.6", + "version": "1.2.0", "name": "primer-labels", "description": "Labels add metatdata or indicate status of items and navigational elements.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-layout/package.json b/modules/primer-layout/package.json index 5077799f..67d1a2a8 100644 --- a/modules/primer-layout/package.json +++ b/modules/primer-layout/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.5", + "version": "1.1.0", "name": "primer-layout", "description": "Containers, rows, and columns for creating page layout.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-markdown/package.json b/modules/primer-markdown/package.json index 6cfe672c..552568eb 100644 --- a/modules/primer-markdown/package.json +++ b/modules/primer-markdown/package.json @@ -1,5 +1,5 @@ { - "version": "3.3.13", + "version": "3.4.0", "name": "primer-markdown", "description": "GitHub stylesheets for rendering markdown.", "homepage": "https://github.com/primer/primer-markdown", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-marketing-support/package.json b/modules/primer-marketing-support/package.json index ce60abd5..bf49451d 100644 --- a/modules/primer-marketing-support/package.json +++ b/modules/primer-marketing-support/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-marketing-support", "description": "Sass variables, mixins, and functions for use in our components.", "homepage": "http://primercss.io/", diff --git a/modules/primer-marketing-type/package.json b/modules/primer-marketing-type/package.json index d1bbd9fb..f19f6f0e 100644 --- a/modules/primer-marketing-type/package.json +++ b/modules/primer-marketing-type/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-marketing-type", "description": "Typography for marketing websites at GitHub", "homepage": "http://primercss.io/", @@ -23,8 +23,8 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-marketing-support": "^1.0.2", - "primer-support": "^4.0.7" + "primer-marketing-support": "^1.1.0", + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-marketing-utilities/package.json b/modules/primer-marketing-utilities/package.json index a59bef4d..46f62951 100644 --- a/modules/primer-marketing-utilities/package.json +++ b/modules/primer-marketing-utilities/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-marketing-utilities", "description": "Marketing specific immutable, atomic CSS classes", "homepage": "http://primercss.io/", @@ -23,8 +23,8 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-marketing-support": "^1.0.2", - "primer-support": "^4.0.7" + "primer-marketing-support": "^1.1.0", + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-marketing/package.json b/modules/primer-marketing/package.json index 28ca7738..295f1fa9 100644 --- a/modules/primer-marketing/package.json +++ b/modules/primer-marketing/package.json @@ -1,5 +1,5 @@ { - "version": "5.0.2", + "version": "5.1.0", "name": "primer-marketing", "description": "Primer CSS marketing packages", "homepage": "http://primercss.io/", @@ -21,15 +21,15 @@ "test": "npm run build" }, "dependencies": { - "primer-breadcrumb": "^1.0.2", - "primer-cards": "^0.1.8", - "primer-marketing-support": "^1.0.2", - "primer-marketing-type": "^1.0.2", - "primer-marketing-utilities": "^1.0.2", - "primer-page-headers": "^1.0.2", - "primer-page-sections": "^1.0.2", - "primer-support": "^4.0.7", - "primer-tables": "^1.0.2" + "primer-breadcrumb": "^1.1.0", + "primer-cards": "^0.2.0", + "primer-marketing-support": "^1.1.0", + "primer-marketing-type": "^1.1.0", + "primer-marketing-utilities": "^1.1.0", + "primer-page-headers": "^1.1.0", + "primer-page-sections": "^1.1.0", + "primer-support": "^4.1.0", + "primer-tables": "^1.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-navigation/package.json b/modules/primer-navigation/package.json index 50ea9e99..3eee344f 100644 --- a/modules/primer-navigation/package.json +++ b/modules/primer-navigation/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.6", + "version": "1.1.0", "name": "primer-navigation", "description": "Singular purpose and flexible navigation elements.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-page-headers/package.json b/modules/primer-page-headers/package.json index 46a52f31..8174a668 100644 --- a/modules/primer-page-headers/package.json +++ b/modules/primer-page-headers/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-page-headers", "description": "Jumbotrons, heroes, and featured content sections for marketing websites at GitHub.", "homepage": "http://primercss.io/", @@ -23,8 +23,8 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-marketing-support": "^1.0.2", - "primer-support": "^4.0.7" + "primer-marketing-support": "^1.1.0", + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-page-sections/package.json b/modules/primer-page-sections/package.json index 47c93299..ae46179c 100644 --- a/modules/primer-page-sections/package.json +++ b/modules/primer-page-sections/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-page-sections", "description": "Styles to create distinct sections of marketing pages at GitHub.", "homepage": "http://primercss.io/", @@ -23,8 +23,8 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-marketing-support": "^1.0.2", - "primer-support": "^4.0.7" + "primer-marketing-support": "^1.1.0", + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-product/package.json b/modules/primer-product/package.json index 1c2939db..4259d705 100644 --- a/modules/primer-product/package.json +++ b/modules/primer-product/package.json @@ -1,5 +1,5 @@ { - "version": "5.0.2", + "version": "5.1.0", "name": "primer-product", "description": "Primer CSS's product modules", "homepage": "http://primercss.io/", @@ -21,12 +21,12 @@ "test": "npm run build" }, "dependencies": { - "primer-alerts": "^1.1.8", - "primer-avatars": "^1.0.2", - "primer-blankslate": "^1.0.2", - "primer-labels": "^1.1.6", - "primer-markdown": "^3.3.13", - "primer-support": "^4.0.7" + "primer-alerts": "^1.2.0", + "primer-avatars": "^1.1.0", + "primer-blankslate": "^1.1.0", + "primer-labels": "^1.2.0", + "primer-markdown": "^3.4.0", + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-support/package.json b/modules/primer-support/package.json index 7b2fc7e4..016f7895 100644 --- a/modules/primer-support/package.json +++ b/modules/primer-support/package.json @@ -1,5 +1,5 @@ { - "version": "4.0.7", + "version": "4.1.0", "name": "primer-support", "description": "Sass variables, mixins, and functions for use in our components.", "homepage": "http://primercss.io/", diff --git a/modules/primer-table-object/package.json b/modules/primer-table-object/package.json index b2b4bd26..74a2b55a 100644 --- a/modules/primer-table-object/package.json +++ b/modules/primer-table-object/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.9", + "version": "1.1.0", "name": "primer-table-object", "description": "A module for creating dynamically resizable elements that always sit on the same horizontal line.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-tables/package.json b/modules/primer-tables/package.json index ef7f1aca..5a7c5582 100644 --- a/modules/primer-tables/package.json +++ b/modules/primer-tables/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-tables", "description": "Styles to display tabular data for marketing websites at GitHub.", "homepage": "http://primercss.io/", @@ -23,8 +23,8 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-marketing-support": "^1.0.2", - "primer-support": "^4.0.7" + "primer-marketing-support": "^1.1.0", + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-tooltips/package.json b/modules/primer-tooltips/package.json index d38684c5..0ec42391 100644 --- a/modules/primer-tooltips/package.json +++ b/modules/primer-tooltips/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-tooltips", "description": "Add tooltips built entirely in CSS to nearly any element.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-truncate/package.json b/modules/primer-truncate/package.json index 56f8d532..651f0523 100644 --- a/modules/primer-truncate/package.json +++ b/modules/primer-truncate/package.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "name": "primer-truncate", "description": "Shorten text with an ellipsis.", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", diff --git a/modules/primer-utilities/package.json b/modules/primer-utilities/package.json index dd6ae11d..007b2d34 100644 --- a/modules/primer-utilities/package.json +++ b/modules/primer-utilities/package.json @@ -1,5 +1,5 @@ { - "version": "4.3.5", + "version": "4.4.0", "name": "primer-utilities", "description": "Immutable, atomic CSS classes to rapidly build product", "homepage": "http://primercss.io/", @@ -23,7 +23,7 @@ "test": "npm run build && npm run lint" }, "dependencies": { - "primer-support": "^4.0.7" + "primer-support": "^4.1.0" }, "devDependencies": { "primer-module-build": "*", From 9f009655c907917dcce34de5e254b203a461d7e6 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 10:36:53 -0700 Subject: [PATCH 02/27] clean up script/release-pr --- script/release-pr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/release-pr b/script/release-pr index e162f700..e47e3e4b 100755 --- a/script/release-pr +++ b/script/release-pr @@ -1,7 +1,7 @@ #!/bin/bash set -e -args=${@:1} +args=$@ package=primer-css npm_tag=pr # the commit status context @@ -14,9 +14,9 @@ lerna publish --npm-tag=${npm_tag} --canary --no-git ${args} version=`jq -r .version modules/${package}/package.json` slug="${package}@${version}" -echo "📡 Transmitting release success for ${slug} ..." - if [[ $TRAVIS_PULL_REQUEST_SHA ]]; then + echo "📡 Transmitting release success for ${slug} ..." + # setting TRAVIS_COMMIT inline here is a fix for: # TRAVIS_COMMIT=$TRAVIS_PULL_REQUEST_SHA \ From b6ef5d3dbe00532616fbba84d41280a5c5d6f543 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 14:12:33 -0700 Subject: [PATCH 03/27] add semver cli --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5317b64a..bcc586ab 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ }, "devDependencies": { "commit-status": "^4.1.0", - "lerna": "^2.0.0" + "lerna": "^2.0.0", + "semver": "^5.3.0" } } From 452deb584cc9e6f71c756af9dbdd3961bf8ef0da Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 14:12:57 -0700 Subject: [PATCH 04/27] really run lerna exec, but bail --- script/release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/release b/script/release index 9ed06ae3..13830a99 100755 --- a/script/release +++ b/script/release @@ -1,4 +1,4 @@ #!/bin/bash set -e -echo "📦 Publishing latest release!" -echo lerna publish +echo "📦 Publishing latest release..." +lerna exec --bail -- npm publish From 9b3e64f00f48cc1aeb6045f480dbc319e707f143 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 14:13:19 -0700 Subject: [PATCH 05/27] add helper script to manually set module versions --- script/version | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 script/version diff --git a/script/version b/script/version new file mode 100755 index 00000000..f1de8026 --- /dev/null +++ b/script/version @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +if [[ $# -lt 1 ]]; then + echo "You must provide a version!" + exit 1 +fi + +version=$1 +module=${2:-primer-css} + +cd modules/$module +echo "${module}@$(jq -r .version package.json) => ${version}" +npm version --no-git ${@:1} > /dev/null From cce5dea156645f0a8f0eaf9f75b28ac43fa5b924 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 14:13:49 -0700 Subject: [PATCH 06/27] clean up cibuild script, publish RCs on release-* branches --- script/cibuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/cibuild b/script/cibuild index 4a7310d1..51263e8a 100755 --- a/script/cibuild +++ b/script/cibuild @@ -3,16 +3,16 @@ set -e # --yes gets passed in by .travis.yml, # which makes this easier to test locally -args=${@:1} +args=$@ # always publish a pr release if this is a PR build -if [[ $TRAVIS_EVENT_TYPE = pull_request ]]; then +if [[ "$TRAVIS_EVENT_TYPE" = "pull_request" ]]; then script/release-pr ${args} # merges to dev build a release candidate -elif [[ $TRAVIS_BRANCH = dev ]]; then +elif [[ "$TRAVIS_BRANCH" =~ "^release-" ]]; then script/release-candidate ${args} # publish a release when we merge to master -elif [[ $TRAVIS_BRANCH = master ]]; then +elif [[ "$TRAVIS_BRANCH" = "master" ]]; then script/release ${args} else echo "⚠️ This isn't a PR and '${TRAVIS_BRANCH}' isn't a release branch." From e331b63551d720b7bfb87b33594508a6338c537b Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 14:33:14 -0700 Subject: [PATCH 07/27] first go at release candidate logic --- script/release-candidate | 75 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/script/release-candidate b/script/release-candidate index 2c0129f3..4cda65ad 100755 --- a/script/release-candidate +++ b/script/release-candidate @@ -1,4 +1,77 @@ #!/bin/bash set -e echo "👌 Publishing release candidate..." -echo lerna publish --npm-tag=rc + +PATH=$(npm bin):$PATH + +package=primer-css +npm_tag=rc +log=/tmp/rc.log + +function bump() { + npm version --no-git $@ +} + +function publish() { + npm publish --silent --tag=$npm_tag $@ +} + +export bump publish + +# get the version we're publishing as a release candidate +local_version=$(jq -r .version modules/$package/package.json) +if [[ $local_version =~ "-" ]]; then + echo "❌ Found pre-release version: $package@$local_version; bailing!" + exit 1 +else + echo "🏔 Local version: $package@$local_version" +fi + +# get the version most recently published to the rc dist-tag +rc_version=$(npm info $package@$npm_tag version) +echo "📦 Published version for $package@$npm_tag: $rc_version" +rc_release=${rc_version%-*} + +# determine the +next_version=$( + semver --increment prerelease --preid $npm_tag $rc_version +) +echo "🆙 Next version: $package@$next_version" + +# update primer-css to the latest new version +pushd modules/$package +bump $next_version +popd + +# strip the pre-release version, yielding just major.minor.patch +pre_version=${next_version:${#local_version}} +echo "prerelease suffix: '$pre_version'" + +# get the name of every module +modules=$(lerna exec pwd | xargs basename) + +# if this is the same version, we need to bump the prerelease +# for all of the modules using the same prerelease identifier +echo "Updating all module versions in place..." +echo +for module in $modules; do + if [[ $module = $package ]]; then + echo "Skipping $package (already bumped)" + continue + fi + pushd modules/$module > /dev/null + + # determine the local version (in git) + module_version=$(jq -r .version package.json) + module_next_version="$module_version$pre_version" + + echo "$module@$module_version => $module_next_version" + # "upgrade" to the most recent RC version so that + # `npm version prerelease` can increment automatically + bump --quiet "$module_next_version" >> $log + + popd > /dev/null +done + +# publish all the things! +echo lerna exec --bail -- npm --dry-run publish From 7696e0fe8c4ec9b7ac55e76e5b68dd8ca61c53b8 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 14:51:46 -0700 Subject: [PATCH 08/27] simplify (no need to bump primer-css separately) --- script/release-candidate | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/script/release-candidate b/script/release-candidate index 4cda65ad..4ae08bbe 100755 --- a/script/release-candidate +++ b/script/release-candidate @@ -16,8 +16,6 @@ function publish() { npm publish --silent --tag=$npm_tag $@ } -export bump publish - # get the version we're publishing as a release candidate local_version=$(jq -r .version modules/$package/package.json) if [[ $local_version =~ "-" ]]; then @@ -36,16 +34,11 @@ rc_release=${rc_version%-*} next_version=$( semver --increment prerelease --preid $npm_tag $rc_version ) -echo "🆙 Next version: $package@$next_version" - -# update primer-css to the latest new version -pushd modules/$package -bump $next_version -popd +echo "🤜 Next version: $package@$next_version" # strip the pre-release version, yielding just major.minor.patch pre_version=${next_version:${#local_version}} -echo "prerelease suffix: '$pre_version'" +echo " Prerelease suffix: '$pre_version'" # get the name of every module modules=$(lerna exec pwd | xargs basename) @@ -55,10 +48,6 @@ modules=$(lerna exec pwd | xargs basename) echo "Updating all module versions in place..." echo for module in $modules; do - if [[ $module = $package ]]; then - echo "Skipping $package (already bumped)" - continue - fi pushd modules/$module > /dev/null # determine the local version (in git) From 0c1b3638f47f57fee722a1d623022b11e4571aac Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 15:00:05 -0700 Subject: [PATCH 09/27] really publish --- script/release-candidate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release-candidate b/script/release-candidate index 4ae08bbe..bfaca94a 100755 --- a/script/release-candidate +++ b/script/release-candidate @@ -63,4 +63,4 @@ for module in $modules; do done # publish all the things! -echo lerna exec --bail -- npm --dry-run publish +lerna exec --bail -- npm publish --tag=$npm_tag From 55cd7631e4ef22fb5cb820eca005e9231e0690d8 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 15:21:46 -0700 Subject: [PATCH 10/27] extract commit status notification from script/release-pr --- script/notify | 22 ++++++++++++++++++++++ script/release-pr | 22 ++-------------------- 2 files changed, 24 insertions(+), 20 deletions(-) create mode 100644 script/notify diff --git a/script/notify b/script/notify new file mode 100644 index 00000000..fc881be8 --- /dev/null +++ b/script/notify @@ -0,0 +1,22 @@ +#!/bin/bash +set -e + +# the commit status context +context="npm publish" + +# get the published version of primer-css from its package.json +package=primer-css +version=`jq -r .version modules/$package/package.json` +published="$package@$version" + +if [[ "$TRAVIS_PULL_REQUEST_SHA" != "" ]]; then + + # setting TRAVIS_COMMIT inline here is a fix for: + # + export TRAVIS_COMMIT=$TRAVIS_PULL_REQUEST_SHA +fi + +echo "📡 Transmitting publish status for $published..." +# TODO point this at the contributing docs! +commit-status success "$context" "$published" \ + "https://unpkg.com/$published/build/build.css" diff --git a/script/release-pr b/script/release-pr index e47e3e4b..8af6061a 100755 --- a/script/release-pr +++ b/script/release-pr @@ -2,25 +2,7 @@ set -e args=$@ -package=primer-css npm_tag=pr -# the commit status context -context=npm/publish/${npm_tag} -echo "🐦 Publishing PR release to dist-tag '${npm_tag}'..." -lerna publish --npm-tag=${npm_tag} --canary --no-git ${args} - -# get the published version of primer-css from its package.json -version=`jq -r .version modules/${package}/package.json` -slug="${package}@${version}" - -if [[ $TRAVIS_PULL_REQUEST_SHA ]]; then - echo "📡 Transmitting release success for ${slug} ..." - - # setting TRAVIS_COMMIT inline here is a fix for: - # - TRAVIS_COMMIT=$TRAVIS_PULL_REQUEST_SHA \ - commit-status success ${context} \ - "npm install ${slug}" \ - "https://unpkg.com/${slug}/build/build.css" -fi +echo "🐦 Publishing PR release to dist-tag '$npm_tag'..." +lerna publish --npm-tag=$npm_tag --canary --no-git $args From 10e9e732c65bbbda2be59555095597cb9ee5f597 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 15:21:59 -0700 Subject: [PATCH 11/27] clean up --- script/cibuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/script/cibuild b/script/cibuild index 51263e8a..41d21721 100755 --- a/script/cibuild +++ b/script/cibuild @@ -7,14 +7,16 @@ args=$@ # always publish a pr release if this is a PR build if [[ "$TRAVIS_EVENT_TYPE" = "pull_request" ]]; then - script/release-pr ${args} + script/release-pr $args # merges to dev build a release candidate elif [[ "$TRAVIS_BRANCH" =~ "^release-" ]]; then - script/release-candidate ${args} + script/release-candidate $args # publish a release when we merge to master elif [[ "$TRAVIS_BRANCH" = "master" ]]; then - script/release ${args} + script/release $args else - echo "⚠️ This isn't a PR and '${TRAVIS_BRANCH}' isn't a release branch." + echo "⚠️ This isn't a PR and '$TRAVIS_BRANCH' isn't a release branch." exit 1 fi + +script/notify From 7d82e1dcdae9fab50a0d902854bb4d66224aeb60 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 15:22:10 -0700 Subject: [PATCH 12/27] don't bail in script/release --- script/release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release b/script/release index 13830a99..2408158a 100755 --- a/script/release +++ b/script/release @@ -1,4 +1,4 @@ #!/bin/bash set -e echo "📦 Publishing latest release..." -lerna exec --bail -- npm publish +lerna exec -- npm publish From 345049b22ec7971bb3c19934b3327ae06d579096 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 15:24:04 -0700 Subject: [PATCH 13/27] clean up, add XXX comment --- script/notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/notify b/script/notify index fc881be8..141a9214 100644 --- a/script/notify +++ b/script/notify @@ -9,8 +9,8 @@ package=primer-css version=`jq -r .version modules/$package/package.json` published="$package@$version" +# XXX this will go away if we build pushes instead of PRs if [[ "$TRAVIS_PULL_REQUEST_SHA" != "" ]]; then - # setting TRAVIS_COMMIT inline here is a fix for: # export TRAVIS_COMMIT=$TRAVIS_PULL_REQUEST_SHA From 080d19801806693137afe041713d6a02abfc4d8c Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 15:27:37 -0700 Subject: [PATCH 14/27] chmod +x script/notify --- script/notify | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 script/notify diff --git a/script/notify b/script/notify old mode 100644 new mode 100755 From b0928f923a6218e4ccf62f255888e6a49748e392 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 15:27:51 -0700 Subject: [PATCH 15/27] add FIXME comment for module listing --- script/release-candidate | 1 + 1 file changed, 1 insertion(+) diff --git a/script/release-candidate b/script/release-candidate index bfaca94a..347bcb76 100755 --- a/script/release-candidate +++ b/script/release-candidate @@ -41,6 +41,7 @@ pre_version=${next_version:${#local_version}} echo " Prerelease suffix: '$pre_version'" # get the name of every module +# FIXME there's gotta be a better way to do this modules=$(lerna exec pwd | xargs basename) # if this is the same version, we need to bump the prerelease From 7f31717354e538c90ede9e933577af08c38a08d1 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 15:38:14 -0700 Subject: [PATCH 16/27] use $() instead of backticks --- script/notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/notify b/script/notify index 141a9214..f06c45ee 100755 --- a/script/notify +++ b/script/notify @@ -6,7 +6,7 @@ context="npm publish" # get the published version of primer-css from its package.json package=primer-css -version=`jq -r .version modules/$package/package.json` +version=$(jq -r .version modules/$package/package.json) published="$package@$version" # XXX this will go away if we build pushes instead of PRs From 136f0c4a2fb0bd14aa503303d248fa515eea55fd Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 16:49:22 -0700 Subject: [PATCH 17/27] debug some travis env vars --- script/cibuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/cibuild b/script/cibuild index 41d21721..85d4ca10 100755 --- a/script/cibuild +++ b/script/cibuild @@ -5,6 +5,12 @@ set -e # which makes this easier to test locally args=$@ +echo "TRAVIS_ env vars:" +echo "EVENT_TYPE: $TRAVIS_EVENT_TYPE" +echo "BRANCH: $TRAVIS_BRANCH" +echo "PULL_REQUEST_BRANCH: $TRAVIS_PULL_REQUEST_BRANCH" +exit + # always publish a pr release if this is a PR build if [[ "$TRAVIS_EVENT_TYPE" = "pull_request" ]]; then script/release-pr $args From 69091cb4e8194a2a3c129a619a1143f8ced5f6bf Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 17:01:47 -0700 Subject: [PATCH 18/27] parameterize script/notify for pending statuses --- script/notify | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/script/notify b/script/notify index f06c45ee..781659c2 100755 --- a/script/notify +++ b/script/notify @@ -1,14 +1,26 @@ #!/bin/bash set -e +if [[ $# -lt 1 ]]; then + echo "No status provided!" >&2 + exit 1 +fi + # the commit status context context="npm publish" +_status=$1 # get the published version of primer-css from its package.json package=primer-css version=$(jq -r .version modules/$package/package.json) published="$package@$version" +message="" +if [[ "$_status" = "success" ]]; then + # TODO point this at the contributing docs! + message="https://unpkg.com/$published/build/build.css" +fi + # XXX this will go away if we build pushes instead of PRs if [[ "$TRAVIS_PULL_REQUEST_SHA" != "" ]]; then # setting TRAVIS_COMMIT inline here is a fix for: @@ -17,6 +29,4 @@ if [[ "$TRAVIS_PULL_REQUEST_SHA" != "" ]]; then fi echo "📡 Transmitting publish status for $published..." -# TODO point this at the contributing docs! -commit-status success "$context" "$published" \ - "https://unpkg.com/$published/build/build.css" +commit-status "$_status" "$context" "$published" "$message" From c3913c8791fd09b0a96ec2d66d32ad47869fdd09 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 17:02:11 -0700 Subject: [PATCH 19/27] rejigger script/cibuild logic, add pending commit status --- script/cibuild | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/script/cibuild b/script/cibuild index 85d4ca10..fe2bf142 100755 --- a/script/cibuild +++ b/script/cibuild @@ -5,24 +5,38 @@ set -e # which makes this easier to test locally args=$@ -echo "TRAVIS_ env vars:" -echo "EVENT_TYPE: $TRAVIS_EVENT_TYPE" -echo "BRANCH: $TRAVIS_BRANCH" -echo "PULL_REQUEST_BRANCH: $TRAVIS_PULL_REQUEST_BRANCH" -exit +event=$TRAVIS_EVENT_TYPE +if [[ $event = "pull_request" ]]; then + branch=$TRAVIS_PULL_REQUEST_BRANCH +else + branch=$TRAVIS_BRANCH +fi +echo "==== CI env ====" +echo "event: $event" +echo "branch: $branch" +echo "================" + +# release branches publish a release candidate +if [[ $branch =~ "^release-" ]]; then + # only publish RCs for push builds + if [[ $event = "push" ]]; then + script/notify pending + script/release-candidate $args + script/notify success + fi # always publish a pr release if this is a PR build -if [[ "$TRAVIS_EVENT_TYPE" = "pull_request" ]]; then +elif [[ $event = "pull_request" ]]; then + script/notify pending script/release-pr $args -# merges to dev build a release candidate -elif [[ "$TRAVIS_BRANCH" =~ "^release-" ]]; then - script/release-candidate $args + script/notify success # publish a release when we merge to master -elif [[ "$TRAVIS_BRANCH" = "master" ]]; then +elif [[ $branch = "master" ]]; then + script/notify pending script/release $args + script/notify success else echo "⚠️ This isn't a PR and '$TRAVIS_BRANCH' isn't a release branch." exit 1 fi -script/notify From 212cf0f2ce530fbdc0d691612d4d97b2d93a58f4 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 17:08:47 -0700 Subject: [PATCH 20/27] more script/cibuild tweaks --- script/cibuild | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/script/cibuild b/script/cibuild index fe2bf142..baff7f2c 100755 --- a/script/cibuild +++ b/script/cibuild @@ -18,25 +18,29 @@ echo "branch: $branch" echo "================" # release branches publish a release candidate -if [[ $branch =~ "^release-" ]]; then +if [[ "$branch" =~ "^release-" ]]; then # only publish RCs for push builds - if [[ $event = "push" ]]; then + if [[ "$event" = "push" ]]; then script/notify pending script/release-candidate $args script/notify success fi + echo "⚠️ This appears to be a release branch," + echo "but we only publish *push* builds." + echo "(TRAVIS_EVENT_TYPE: $event)" + exit 1 # always publish a pr release if this is a PR build -elif [[ $event = "pull_request" ]]; then +elif [[ "$event" = "pull_request" ]]; then script/notify pending script/release-pr $args script/notify success # publish a release when we merge to master -elif [[ $branch = "master" ]]; then +elif [[ "$branch" = "master" ]]; then script/notify pending script/release $args script/notify success else - echo "⚠️ This isn't a PR and '$TRAVIS_BRANCH' isn't a release branch." + echo "⚠️ This isn't a PR and '$branch' isn't a release branch." exit 1 fi From 6e68955260ea5e19254195b0cb84ef8dff0e7fd9 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 17:28:05 -0700 Subject: [PATCH 21/27] fix release branch detection, better errors --- script/cibuild | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/script/cibuild b/script/cibuild index baff7f2c..6ec6f4ec 100755 --- a/script/cibuild +++ b/script/cibuild @@ -5,28 +5,27 @@ set -e # which makes this easier to test locally args=$@ -event=$TRAVIS_EVENT_TYPE -if [[ $event = "pull_request" ]]; then - branch=$TRAVIS_PULL_REQUEST_BRANCH -else - branch=$TRAVIS_BRANCH -fi +event="$TRAVIS_EVENT_TYPE" +branch="${TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_BRANCH}}" echo "==== CI env ====" echo "event: $event" echo "branch: $branch" echo "================" +if [[ "$event" = "" || "$branch" = "" ]]; then + echo '❌ Missing $TRAVIS_EVENT_TYPE or $TRAVIS_BRANCH!' + exit 1 +fi # release branches publish a release candidate -if [[ "$branch" =~ "^release-" ]]; then +if [[ "$branch" =~ ^release- ]]; then # only publish RCs for push builds if [[ "$event" = "push" ]]; then script/notify pending script/release-candidate $args script/notify success fi - echo "⚠️ This appears to be a release branch," - echo "but we only publish *push* builds." + echo "⚠️ This appears to be a release branch, but we only publish *push* builds." echo "(TRAVIS_EVENT_TYPE: $event)" exit 1 # always publish a pr release if this is a PR build From 7af1dfa0227ba39c0b2844fbaf3597f87de65dc2 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 17:34:17 -0700 Subject: [PATCH 22/27] fix branch variable setting --- script/cibuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/cibuild b/script/cibuild index 6ec6f4ec..bdb64a9b 100755 --- a/script/cibuild +++ b/script/cibuild @@ -6,7 +6,11 @@ set -e args=$@ event="$TRAVIS_EVENT_TYPE" -branch="${TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_BRANCH}}" +branch="$TRAVIS_BRANCH" +# use $TRAVIS_PULL_REQUEST_BRANCH if this is a PR +if [[ "$event" = "pull_request" ]]; then + branch="$TRAVIS_PULL_REQUEST_BRANCH" +fi echo "==== CI env ====" echo "event: $event" From 2e811f47e88d4d32669e7c969f9fdee91aabf35a Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 17:42:23 -0700 Subject: [PATCH 23/27] don't be so clever about module dirs --- script/release-candidate | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/script/release-candidate b/script/release-candidate index 347bcb76..9f6447bb 100755 --- a/script/release-candidate +++ b/script/release-candidate @@ -12,10 +12,6 @@ function bump() { npm version --no-git $@ } -function publish() { - npm publish --silent --tag=$npm_tag $@ -} - # get the version we're publishing as a release candidate local_version=$(jq -r .version modules/$package/package.json) if [[ $local_version =~ "-" ]]; then @@ -40,16 +36,14 @@ echo "🤜 Next version: $package@$next_version" pre_version=${next_version:${#local_version}} echo " Prerelease suffix: '$pre_version'" -# get the name of every module -# FIXME there's gotta be a better way to do this -modules=$(lerna exec pwd | xargs basename) - # if this is the same version, we need to bump the prerelease # for all of the modules using the same prerelease identifier echo "Updating all module versions in place..." echo -for module in $modules; do - pushd modules/$module > /dev/null +module_dirs=modules/primer-* +for module_dir in $module_dirs; do + pushd $module_dir > /dev/null + module=$(basename $module_dir) # determine the local version (in git) module_version=$(jq -r .version package.json) From 03f4a9f3bde84e88faafed7013155e4208d2aca3 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 17:49:27 -0700 Subject: [PATCH 24/27] fix errant warning in RC builds --- script/cibuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script/cibuild b/script/cibuild index bdb64a9b..ab1fd0de 100755 --- a/script/cibuild +++ b/script/cibuild @@ -28,10 +28,11 @@ if [[ "$branch" =~ ^release- ]]; then script/notify pending script/release-candidate $args script/notify success + else + echo "⚠️ This appears to be a release branch, but we only publish *push* builds." + echo "(TRAVIS_EVENT_TYPE: $event)" + exit 1 fi - echo "⚠️ This appears to be a release branch, but we only publish *push* builds." - echo "(TRAVIS_EVENT_TYPE: $event)" - exit 1 # always publish a pr release if this is a PR build elif [[ "$event" = "pull_request" ]]; then script/notify pending From 0e5d7905b2a4cc91b47fe0ca21a0f6e4a5d1855f Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 20 Jul 2017 17:51:11 -0700 Subject: [PATCH 25/27] tweak debug message formatting --- script/cibuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/cibuild b/script/cibuild index ab1fd0de..dab000db 100755 --- a/script/cibuild +++ b/script/cibuild @@ -12,10 +12,11 @@ if [[ "$event" = "pull_request" ]]; then branch="$TRAVIS_PULL_REQUEST_BRANCH" fi -echo "==== CI env ====" -echo "event: $event" -echo "branch: $branch" -echo "================" +echo "===== CI build =====" +echo " event: $event" +echo " branch: $branch" +echo "====================" + if [[ "$event" = "" || "$branch" = "" ]]; then echo '❌ Missing $TRAVIS_EVENT_TYPE or $TRAVIS_BRANCH!' exit 1 From d35bf97bde8a88cf8bfd448375eb292f67449db3 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Fri, 21 Jul 2017 15:55:51 -0700 Subject: [PATCH 26/27] add slack integration token --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index c9989e25..abfae4e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,3 +11,7 @@ script: after_success: - npm config set "//registry.npmjs.org/:_authToken=\${NPM_API_KEY}" - script/cibuild --yes + +notifications: + slack: + secure: W9lPRuuPMNwElkXZ8UZtu5phgUNleDCK0PgERa28dkh5b0Y9xzRpIQPRJfqVYAPtnMVXhfYcqryMzA4oj0E4fc7OxQsKmMeF1OcTuj5N4CM5xXR/qXDehOUTp6fpCToIX9d4hZ2H///PCExpul3TcfxYJe6EWQCHYd1n6zKRl8g= From 69ddca2d5e9e0c29ecd30abd134f9e05839a465c Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 24 Jul 2017 12:20:55 -0700 Subject: [PATCH 27/27] update the CHANGELOG for v9.1.0 --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79a8e622..982a0a68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # HEAD +# 9.1.0 + +This release updates our [stylelint config](/primer/stylelint-config-primer) to [v2.0.0](https://github.com/primer/stylelint-config-primer/releases/tag/v2.0.0), and to stylelint v7.13.0. Each module also now has a `lint` npm script, and there are top-level `test` and `lint` scripts that you can use to lint and test all modules in one go. + +This release also includes major improvements to our Travis build scripts to automatically publish PR builds, release candidates, and the "final" versions to npm. + +# 9.0.0 + +# 8.0.0 + +# 7.0.0 + +# 6.0.0 + +# 5.0.0 + # 4.4.0 - Adding primer-marketing module to primer