Skip to content

Commit

Permalink
Merge pull request #484 from hackoregon/lerna/publish
Browse files Browse the repository at this point in the history
#444 - Set up publishing workflow
  • Loading branch information
jaronheard authored Apr 23, 2019
2 parents 872d10c + e52c626 commit e921669
Show file tree
Hide file tree
Showing 23 changed files with 159 additions and 105 deletions.
27 changes: 15 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
language: node_js
cache: yarn
node_js:
- "10.15.3"
- 10.15.3
services:
- docker
- docker
install:
- npm i -g npx
- npm i -g rimraf
- npm i -g cross-env
- yarn bootstrap
- yarn run configure
- npm i -g npx
- npm i -g rimraf
- npm i -g cross-env
- yarn bootstrap
- yarn run configure
matrix:
include:
- env: SUITE=2017
- env: SUITE=2018
- env: SUITE=COMPONENT_LIBRARY
- env: SUITE=2017
- env: SUITE=2018
- env: SUITE=COMPONENT_LIBRARY
script:
- yarn run travis
- yarn run travis
after_success:
- make deploy
- make deploy
env:
global:
secure: l16oa/uYpqv+pmzXoVZOxADnZgwCFii+DiUAsoCF7xDer3czpM9tpdy0uwNkb/XaLCtQctdSj8ZxMFT2AdORiZR0+VdqHSrBBm59oIdMkgyfFCrRBNlGZ7keAsxZCTDNlFSIMaGI4gtJmejMXsy31kyMEvNfcOUmgzBUPhR9wr6k0MFJQu/1ND5JV7rd3REyt7jKxdOTTZhu+7ioGOQTvCdKbYbyumVd4nuvA/eNdGvnTImVbvpAxCQlwIGFujnMRyq1+e/xp68jKV0jOxozOWs4R0KaiscTjm619snFRaFprSPtVh2mZZ/I+Ea1syXYDVurDRhuId4KAk/WTS17CxI3Io8Hg9OdfHVflCKeGnXtZX0ZMTpCKoXMFuqLlQu4XL9u8oP0NZqizR/A01g5w52ud0KWaGDJdAvLcBRAR9eoctyoFlVtqv01h60u3O9Vc3eeDXHUPwkWg4bMIx6fox36LGlZ6HFQLAD2oM9yD5cYTUF7fo+LtyTXO/OZhamZYquDzX48rj8gMsFhrWnjYos/02WBRolZ/zAm2Cidyni7iuPsoPNeHtcBHEhUJ85TbTczlQU7H4mHodhLjWZlO2NJnRgpn++ktxECV2Sb1ApgQX818lKu5nlVw4xFwlT922VBfhpAJnj1WKkaFvHQf0G3C0/v5wiSbstdjIhD458=
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,9 @@ deploy-2018: setup-aws access-ecr
./bin/ecs-deploy.sh --cluster $$ECS_CLUSTER --service-name $$ECS_SERVICE_2018 --image $$REMOTE_IMAGE_URL/civic-2018:latest --timeout 10

deploy-component-library:
@echo "Deploying the component library";
yarn run deploy-storybook -- --ci;
@echo "Deploying the component library"
yarn run deploy-storybook -- --ci
@echo "Setting npm credentials"
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
@echo "Publishing canary versions of packages to npm"
yarn run publish-canary
9 changes: 7 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"useWorkspaces": true,
"npmClient": "yarn",
"private": true
"private": true,
"command": {
"publish": {
"message": "(🧹release): publish %s"
}
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
"bootstrap": "yarn install --frozen-lockfile",
"build": "lerna run build",
"configure": "lerna run configure",
"tag": "lerna publish --skip-npm",
"canary": "lerna publish --skip-git --skip-npm --canary",
"publish-patch": "lerna publish bump patch --yes",
"publish-minor": "lerna publish bump minor --yes",
"publish-major": "lerna publish bump major --yes",
"publish-canary": "lerna publish --canary --yes --preid ci --npm-tag=ci -m '(🐦ci-canary): publish %s'",
"clean": "lerna clean && rimraf node_modules",
"watch": "node scripts/watch",
"start": "node scripts/start",
"deploy-storybook": "BABEL_ENV=esm storybook-to-ghpages",
"in": "lerna run --scope",
"link:all": "lerna link",
"lint": "lerna run lint",
"lint:fix": "lerna run lint --no-bail -- --fix",
"storybook": "BABEL_ENV=esm start-storybook -p 6006",
Expand All @@ -59,7 +60,6 @@
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@storybook/addon-a11y": "^5.0.6",
"@storybook/addon-actions": "^5.0.6",
"@storybook/addon-info": "^5.0.6",
Expand Down
11 changes: 6 additions & 5 deletions packages/2017/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "@hackoregon/2017",
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"description": "All 2017 projects assembled",
"main": "index.js",
"private": true,
"scripts": {
"start": "yarn start:dev",
"start:dev": "cross-env NODE_ENV=development babel-node server/dev.js",
Expand Down Expand Up @@ -33,10 +34,10 @@
"@babel/core": "^7.3.4",
"@babel/node": "^7.0.0",
"@babel/register": "^7.0.0",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@hackoregon/component-library": "^1.0.0-alpha.1c62c05f",
"@hackoregon/dev-server": "^1.0.0-alpha.1c62c05f",
"@hackoregon/webpack-common": "^1.0.0-alpha.1c62c05f",
"@hackoregon/civic-babel-presets": "^3.0.0",
"@hackoregon/component-library": "^3.0.0",
"@hackoregon/dev-server": "^3.0.0",
"@hackoregon/webpack-common": "^3.0.0",
"autoprefixer": "^9.4.10",
"emotion": "^10.0.6",
"react": "^16.8.4",
Expand Down
11 changes: 6 additions & 5 deletions packages/2018-disaster-resilience/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hackoregon/2018-disaster-resilience",
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"description": "Hack Oregon Front-end React + Redux Starter",
"main": "src/index.js",
"author": "David Daniel",
Expand All @@ -21,6 +21,7 @@
"engines": {
"npm": ">=3"
},
"private": true,
"scripts": {
"clean": "rimraf ./build && mkdir build",
"start": "yarn start:dev",
Expand All @@ -30,7 +31,7 @@
"test": "cross-env BABEL_ENV=test mocha --opts ./mocha.opts 'src/**/*.test.js'"
},
"dependencies": {
"@hackoregon/component-library": "^1.0.0-alpha.1c62c05f",
"@hackoregon/component-library": "^3.0.0",
"axios": "^0.18.0",
"compression": "^1.6.2",
"cross-env": "^5.2.0",
Expand All @@ -54,9 +55,9 @@
"@babel/core": "^7.0.0",
"@babel/node": "^7.0.0",
"@babel/register": "^7.0.0",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@hackoregon/mock-wrapper": "^1.0.0-alpha.1c62c05f",
"@hackoregon/webpack-common": "^1.0.0-alpha.1c62c05f",
"@hackoregon/civic-babel-presets": "^3.0.0",
"@hackoregon/mock-wrapper": "^3.0.0",
"@hackoregon/webpack-common": "^3.0.0",
"autoprefixer": "^9.4.10",
"babel-jest": "^24.5.0",
"chai": "^4.2.0",
Expand Down
11 changes: 6 additions & 5 deletions packages/2018-example-farmers-markets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hackoregon/2018-example-farmers-markets",
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"description": "Hack Oregon Front-end React + Redux Starter",
"main": "src/index.js",
"author": "David Daniel",
Expand All @@ -21,6 +21,7 @@
"engines": {
"npm": ">=3"
},
"private": true,
"scripts": {
"clean": "rimraf ./build && mkdir build",
"start": "yarn start:dev",
Expand All @@ -30,7 +31,7 @@
"test": "cross-env BABEL_ENV=test mocha --opts ./mocha.opts 'src/**/*.test.js'"
},
"dependencies": {
"@hackoregon/component-library": "^1.0.0-alpha.1c62c05f",
"@hackoregon/component-library": "^3.0.0",
"axios": "^0.18.0",
"compression": "^1.6.2",
"cross-env": "^5.2.0",
Expand All @@ -54,9 +55,9 @@
"@babel/core": "^7.0.0",
"@babel/node": "^7.0.0",
"@babel/register": "^7.0.0",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@hackoregon/mock-wrapper": "^1.0.0-alpha.1c62c05f",
"@hackoregon/webpack-common": "^1.0.0-alpha.1c62c05f",
"@hackoregon/civic-babel-presets": "^3.0.0",
"@hackoregon/mock-wrapper": "^3.0.0",
"@hackoregon/webpack-common": "^3.0.0",
"autoprefixer": "^9.4.10",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
Expand Down
11 changes: 6 additions & 5 deletions packages/2018-housing-affordability/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hackoregon/2018-housing-affordability",
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"description": "Hack Oregon Front-end React + Redux Starter",
"main": "src/index.js",
"author": "David Daniel",
Expand All @@ -21,6 +21,7 @@
"engines": {
"npm": ">=3"
},
"private": true,
"scripts": {
"clean": "rimraf ./build && mkdir build",
"start": "yarn start:dev",
Expand All @@ -30,7 +31,7 @@
"test": "cross-env BABEL_ENV=test mocha --opts ./mocha.opts 'src/**/*.test.js'"
},
"dependencies": {
"@hackoregon/component-library": "^1.0.0-alpha.1c62c05f",
"@hackoregon/component-library": "^3.0.0",
"axios": "^0.18.0",
"compression": "^1.6.2",
"cross-env": "^5.2.0",
Expand All @@ -54,9 +55,9 @@
"@babel/core": "^7.0.0",
"@babel/node": "^7.0.0",
"@babel/register": "^7.0.0",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@hackoregon/mock-wrapper": "^1.0.0-alpha.1c62c05f",
"@hackoregon/webpack-common": "^1.0.0-alpha.1c62c05f",
"@hackoregon/civic-babel-presets": "^3.0.0",
"@hackoregon/mock-wrapper": "^3.0.0",
"@hackoregon/webpack-common": "^3.0.0",
"autoprefixer": "^9.4.10",
"babel-jest": "^24.5.0",
"chai": "^4.2.0",
Expand Down
11 changes: 6 additions & 5 deletions packages/2018-local-elections/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hackoregon/2018-local-elections",
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"description": "Hack Oregon Front-end React + Redux Starter",
"main": "src/index.js",
"author": "David Daniel",
Expand All @@ -21,6 +21,7 @@
"engines": {
"npm": ">=3"
},
"private": true,
"scripts": {
"clean": "rimraf ./build && mkdir build",
"start": "yarn start:dev",
Expand All @@ -30,7 +31,7 @@
"test": "cross-env BABEL_ENV=test mocha --opts ./mocha.opts 'src/**/*.test.js'"
},
"dependencies": {
"@hackoregon/component-library": "^1.0.0-alpha.1c62c05f",
"@hackoregon/component-library": "^3.0.0",
"axios": "^0.18.0",
"compression": "^1.6.2",
"cross-env": "^5.2.0",
Expand All @@ -54,9 +55,9 @@
"@babel/core": "^7.0.0",
"@babel/node": "^7.0.0",
"@babel/register": "^7.0.0",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@hackoregon/mock-wrapper": "^1.0.0-alpha.1c62c05f",
"@hackoregon/webpack-common": "^1.0.0-alpha.1c62c05f",
"@hackoregon/civic-babel-presets": "^3.0.0",
"@hackoregon/mock-wrapper": "^3.0.0",
"@hackoregon/webpack-common": "^3.0.0",
"autoprefixer": "^9.4.10",
"babel-jest": "^24.5.0",
"chai": "^4.2.0",
Expand Down
11 changes: 6 additions & 5 deletions packages/2018-neighborhood-development/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hackoregon/2018-neighborhood-development",
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"description": "Hack Oregon Front-end React + Redux Starter",
"main": "src/index.js",
"author": "David Daniel",
Expand All @@ -21,6 +21,7 @@
"engines": {
"npm": ">=3"
},
"private": true,
"scripts": {
"clean": "rimraf ./build && mkdir build",
"start": "yarn start:dev",
Expand All @@ -31,7 +32,7 @@
"lint": "eslint --fix src"
},
"dependencies": {
"@hackoregon/component-library": "^1.0.0-alpha.1c62c05f",
"@hackoregon/component-library": "^3.0.0",
"axios": "^0.18.0",
"compression": "^1.6.2",
"cross-env": "^5.2.0",
Expand All @@ -55,9 +56,9 @@
"@babel/core": "^7.0.0",
"@babel/node": "^7.0.0",
"@babel/register": "^7.0.0",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@hackoregon/mock-wrapper": "^1.0.0-alpha.1c62c05f",
"@hackoregon/webpack-common": "^1.0.0-alpha.1c62c05f",
"@hackoregon/civic-babel-presets": "^3.0.0",
"@hackoregon/mock-wrapper": "^3.0.0",
"@hackoregon/webpack-common": "^3.0.0",
"autoprefixer": "^9.4.10",
"babel-jest": "^24.5.0",
"chai": "^4.2.0",
Expand Down
11 changes: 6 additions & 5 deletions packages/2018-transportation-systems/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hackoregon/2018-transportation-systems",
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"description": "Hack Oregon Front-end React + Redux Starter",
"main": "src/index.js",
"author": "David Daniel",
Expand All @@ -21,6 +21,7 @@
"engines": {
"npm": ">=3"
},
"private": true,
"scripts": {
"clean": "rimraf ./build && mkdir build",
"start": "yarn start:dev",
Expand All @@ -30,7 +31,7 @@
"test": "cross-env BABEL_ENV=test mocha --opts ./mocha.opts 'src/**/*.test.js'"
},
"dependencies": {
"@hackoregon/component-library": "^1.0.0-alpha.1c62c05f",
"@hackoregon/component-library": "^3.0.0",
"axios": "^0.18.0",
"compression": "^1.6.2",
"cross-env": "^5.2.0",
Expand All @@ -54,9 +55,9 @@
"@babel/core": "^7.0.0",
"@babel/node": "^7.0.0",
"@babel/register": "^7.0.0",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@hackoregon/mock-wrapper": "^1.0.0-alpha.1c62c05f",
"@hackoregon/webpack-common": "^1.0.0-alpha.1c62c05f",
"@hackoregon/civic-babel-presets": "^3.0.0",
"@hackoregon/mock-wrapper": "^3.0.0",
"@hackoregon/webpack-common": "^3.0.0",
"autoprefixer": "^9.4.10",
"babel-jest": "^24.5.0",
"chai": "^4.2.0",
Expand Down
11 changes: 6 additions & 5 deletions packages/2018/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "@hackoregon/2018",
"version": "1.0.0-alpha.1c62c05f",
"version": "3.0.0",
"description": "All 2018 projects assembled",
"main": "index.js",
"private": true,
"scripts": {
"start": "yarn start:dev",
"start:dev": "cross-env NODE_ENV=development babel-node server/dev.js",
Expand Down Expand Up @@ -34,10 +35,10 @@
"@babel/register": "^7.0.0",
"@emotion/core": "^10.0.9",
"@emotion/styled": "^10.0.9",
"@hackoregon/civic-babel-presets": "^1.0.0-alpha.1c62c05f",
"@hackoregon/component-library": "^1.0.0-alpha.1c62c05f",
"@hackoregon/dev-server": "^1.0.0-alpha.1c62c05f",
"@hackoregon/webpack-common": "^1.0.0-alpha.1c62c05f",
"@hackoregon/civic-babel-presets": "^3.0.0",
"@hackoregon/component-library": "^3.0.0",
"@hackoregon/dev-server": "^3.0.0",
"@hackoregon/webpack-common": "^3.0.0",
"autoprefixer": "^9.4.10",
"react": "^16.8.4",
"react-dom": "^16.8.4",
Expand Down
Loading

0 comments on commit e921669

Please sign in to comment.